3.0.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0

    public sealed class ListSecretsResponse : IPageResponse<Secret>, IEnumerable<Secret>, IEnumerable, IMessage<ListSecretsResponse>, IEquatable<ListSecretsResponse>, IDeepCloneable<ListSecretsResponse>, IBufferMessage, IMessage

Reference documentation and code samples for the Secret Manager v1 API class ListSecretsResponse.

Response message for
\[SecretManagerService.ListSecrets\]\[google.cloud.secretmanager.v1.SecretManagerService.ListSecrets\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ListSecretsResponse

## Implements

[IPageResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageResponse-1.md.txt)[Secret](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Secret.md.txt), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[Secret](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Secret.md.txt), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ListSecretsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ListSecretsResponse.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListSecretsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ListSecretsResponse.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ListSecretsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ListSecretsResponse.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.SecretManager.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.md.txt)

## Assembly

Google.Cloud.SecretManager.V1.dll

## Constructors

### ListSecretsResponse()

    public ListSecretsResponse()

### ListSecretsResponse(ListSecretsResponse)

    public ListSecretsResponse(ListSecretsResponse other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ListSecretsResponse` |

## Properties

### NextPageToken

    public string NextPageToken { get; set; }

A token to retrieve the next page of results. Pass this value in
\[ListSecretsRequest.page_token\]\[google.cloud.secretmanager.v1.ListSecretsRequest.page_token\]
to retrieve the next page.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Secrets

    public RepeatedField<Secret> Secrets { get; }

The list of \[Secrets\]\[google.cloud.secretmanager.v1.Secret\] sorted in
reverse by create_time (newest first).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldSecret` |   |

### TotalSize

    public int TotalSize { get; set; }

The total number of \[Secrets\]\[google.cloud.secretmanager.v1.Secret\] but 0
when the
\[ListSecretsRequest.filter\]\[google.cloud.secretmanager.v1.ListSecretsRequest.filter\]
field is set.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

## Methods

### GetEnumerator()

    public IEnumerator<Secret> GetEnumerator()

Returns an enumerator that iterates through the resources in this response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `IEnumeratorSecret` |   |