# Secret Manager v1beta2 API - Class ListSecretsResponse (1.0.0-beta04)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.0.0-beta04 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretsResponse)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/1.0.0-beta03/Google.Cloud.SecretManager.V1Beta2.ListSecretsResponse)

    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 v1beta2 API class ListSecretsResponse.

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

## Inheritance

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

## Implements

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

## 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.V1Beta2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2)

## Assembly

Google.Cloud.SecretManager.V1Beta2.dll

## Constructors

### ListSecretsResponse()

    public ListSecretsResponse()

### ListSecretsResponse(ListSecretsResponse)

    public ListSecretsResponse(ListSecretsResponse other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.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.v1beta2.ListSecretsRequest.page_token\]
to retrieve the next page.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Secrets

    public RepeatedField<Secret> Secrets { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.Secret` |   |

### TotalSize

    public int TotalSize { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

## Methods

### GetEnumerator()

    public IEnumerator<Secret> GetEnumerator()

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.Secret` |   |