# Secret Manager V1BETA2 API - Class Google::Cloud::SecretManager::V1beta2::ListSecretVersionsResponse (v0.8.0)

0.8.0 (latest) 0.7.1 0.6.0 0.5.1 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Secret Manager V1BETA2 API class Google::Cloud::SecretManager::V1beta2::ListSecretVersionsResponse.

Response message for
[SecretManagerService.ListSecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta2__SecretManagerService__Client_list_secret_versions_instance_ "Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#list_secret_versions (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #next_page_token

    def next_page_token() -> ::String

**Returns**

- (::String) --- A token to retrieve the next page of results. Pass this value in [ListSecretVersionsRequest.page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-ListSecretVersionsRequest#Google__Cloud__SecretManager__V1beta2__ListSecretVersionsRequest_page_token_instance_ "Google::Cloud::SecretManager::V1beta2::ListSecretVersionsRequest#page_token (method)") to retrieve the next page.

### #next_page_token=

    def next_page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- A token to retrieve the next page of results. Pass this value in [ListSecretVersionsRequest.page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-ListSecretVersionsRequest#Google__Cloud__SecretManager__V1beta2__ListSecretVersionsRequest_page_token_instance_ "Google::Cloud::SecretManager::V1beta2::ListSecretVersionsRequest#page_token (method)") to retrieve the next page.
**Returns**

- (::String) --- A token to retrieve the next page of results. Pass this value in [ListSecretVersionsRequest.page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-ListSecretVersionsRequest#Google__Cloud__SecretManager__V1beta2__ListSecretVersionsRequest_page_token_instance_ "Google::Cloud::SecretManager::V1beta2::ListSecretVersionsRequest#page_token (method)") to retrieve the next page.

### #total_size

    def total_size() -> ::Integer

**Returns**

- (::Integer) --- The total number of [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::SecretVersion (class)") but 0 when the [ListSecretsRequest.filter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-ListSecretsRequest#Google__Cloud__SecretManager__V1beta2__ListSecretsRequest_filter_instance_ "Google::Cloud::SecretManager::V1beta2::ListSecretsRequest#filter (method)") field is set.

### #total_size=

    def total_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The total number of [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::SecretVersion (class)") but 0 when the [ListSecretsRequest.filter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-ListSecretsRequest#Google__Cloud__SecretManager__V1beta2__ListSecretsRequest_filter_instance_ "Google::Cloud::SecretManager::V1beta2::ListSecretsRequest#filter (method)") field is set.
**Returns**

- (::Integer) --- The total number of [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::SecretVersion (class)") but 0 when the [ListSecretsRequest.filter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-ListSecretsRequest#Google__Cloud__SecretManager__V1beta2__ListSecretsRequest_filter_instance_ "Google::Cloud::SecretManager::V1beta2::ListSecretsRequest#filter (method)") field is set.

### #versions

    def versions() -> ::Array<::Google::Cloud::SecretManager::V1beta2::SecretVersion>

**Returns**

- (::Array\<[::Google::Cloud::SecretManager::V1beta2::SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion)\>) --- The list of [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::SecretVersion (class)") sorted in reverse by create_time (newest first).

### #versions=

    def versions=(value) -> ::Array<::Google::Cloud::SecretManager::V1beta2::SecretVersion>

**Parameter**

- **value** (::Array\<[::Google::Cloud::SecretManager::V1beta2::SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion)\>) --- The list of [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::SecretVersion (class)") sorted in reverse by create_time (newest first).
**Returns**

- (::Array\<[::Google::Cloud::SecretManager::V1beta2::SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion)\>) --- The list of [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::SecretVersion (class)") sorted in reverse by create_time (newest first).