# Secret Manager v1beta2 API - Class ListSecretVersionsResponse (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.ListSecretVersionsResponse)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/1.0.0-beta03/Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsResponse)

    public sealed class ListSecretVersionsResponse : IPageResponse<SecretVersion>, IEnumerable<SecretVersion>, IEnumerable, IMessage<ListSecretVersionsResponse>, IEquatable<ListSecretVersionsResponse>, IDeepCloneable<ListSecretVersionsResponse>, IBufferMessage, IMessage

Reference documentation and code samples for the Secret Manager v1beta2 API class ListSecretVersionsResponse.

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

## Inheritance

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

## Implements

[IPageResponse](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageResponse-1.html)[SecretVersion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.SecretVersion), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[SecretVersion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.SecretVersion), [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)[ListSecretVersionsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListSecretVersionsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListSecretVersionsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsResponse), [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

### ListSecretVersionsResponse()

    public ListSecretVersionsResponse()

### ListSecretVersionsResponse(ListSecretVersionsResponse)

    public ListSecretVersionsResponse(ListSecretVersionsResponse other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsResponse` |

## Properties

### NextPageToken

    public string NextPageToken { get; set; }

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

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

### TotalSize

    public int TotalSize { get; set; }

The total number of
\[SecretVersions\]\[google.cloud.secretmanager.v1beta2.SecretVersion\] 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` |   |

### Versions

    public RepeatedField<SecretVersion> Versions { get; }

The list of
\[SecretVersions\]\[google.cloud.secretmanager.v1beta2.SecretVersion\] 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.SecretVersion` |   |

## Methods

### GetEnumerator()

    public IEnumerator<SecretVersion> 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.SecretVersion` |   |