# Secret Manager V1BETA2 API - Class Google::Cloud::SecretManager::V1beta2::ListSecretVersionsRequest (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::ListSecretVersionsRequest.

Request 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

### #filter

    def filter() -> ::String

**Returns**

- (::String) --- Optional. Filter string, adhering to the rules in [List-operation
  filtering](https://cloud.google.com/secret-manager/docs/filtering). List only secret versions matching the filter. If filter is empty, all secret versions are listed.

### #filter=

    def filter=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Filter string, adhering to the rules in [List-operation
  filtering](https://cloud.google.com/secret-manager/docs/filtering). List only secret versions matching the filter. If filter is empty, all secret versions are listed.
**Returns**

- (::String) --- Optional. Filter string, adhering to the rules in [List-operation
  filtering](https://cloud.google.com/secret-manager/docs/filtering). List only secret versions matching the filter. If filter is empty, all secret versions are listed.

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- Optional. The maximum number of results to be returned in a single page. If set to 0, the server decides the number of results to return. If the number is greater than 25000, it is capped at 25000.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. The maximum number of results to be returned in a single page. If set to 0, the server decides the number of results to return. If the number is greater than 25000, it is capped at 25000.
**Returns**

- (::Integer) --- Optional. The maximum number of results to be returned in a single page. If set to 0, the server decides the number of results to return. If the number is greater than 25000, it is capped at 25000.

### #page_token

    def page_token() -> ::String

**Returns**

- (::String) --- Optional. Pagination token, returned earlier via ListSecretVersionsResponse.next_page_token\]\[\].

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Pagination token, returned earlier via ListSecretVersionsResponse.next_page_token\]\[\].
**Returns**

- (::String) --- Optional. Pagination token, returned earlier via ListSecretVersionsResponse.next_page_token\]\[\].

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The resource name of the [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret "Google::Cloud::SecretManager::V1beta2::Secret (class)") associated with the [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)") to list, in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret "Google::Cloud::SecretManager::V1beta2::Secret (class)") associated with the [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)") to list, in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
**Returns**

- (::String) --- Required. The resource name of the [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret "Google::Cloud::SecretManager::V1beta2::Secret (class)") associated with the [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)") to list, in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.