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

Request message for
[SecretManagerService.ListSecrets](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_secrets_instance_ "Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#list_secrets (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 secrets matching the filter. If filter is empty, all secrets 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 secrets matching the filter. If filter is empty, all secrets 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 secrets matching the filter. If filter is empty, all secrets 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 [ListSecretsResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-ListSecretsResponse#Google__Cloud__SecretManager__V1beta2__ListSecretsResponse_next_page_token_instance_ "Google::Cloud::SecretManager::V1beta2::ListSecretsResponse#next_page_token (method)").

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Pagination token, returned earlier via [ListSecretsResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-ListSecretsResponse#Google__Cloud__SecretManager__V1beta2__ListSecretsResponse_next_page_token_instance_ "Google::Cloud::SecretManager::V1beta2::ListSecretsResponse#next_page_token (method)").
**Returns**

- (::String) --- Optional. Pagination token, returned earlier via [ListSecretsResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-ListSecretsResponse#Google__Cloud__SecretManager__V1beta2__ListSecretsResponse_next_page_token_instance_ "Google::Cloud::SecretManager::V1beta2::ListSecretsResponse#next_page_token (method)").

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The resource name of the project associated with the [Secrets](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)"), in the format `projects/*` or `projects/*/locations/*`

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the project associated with the [Secrets](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)"), in the format `projects/*` or `projects/*/locations/*`
**Returns**

- (::String) --- Required. The resource name of the project associated with the [Secrets](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)"), in the format `projects/*` or `projects/*/locations/*`