# Secret Manager V1 API - Class Google::Cloud::SecretManager::V1::ListSecretsRequest (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.21.0 0.20.0 0.19.2 0.18.0 0.17.2 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.3 Reference documentation and code samples for the Secret Manager V1 API class Google::Cloud::SecretManager::V1::ListSecretsRequest.

Request message for
[SecretManagerService.ListSecrets](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_list_secrets_instance_ "Google::Cloud::SecretManager::V1::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-v1/latest/Google-Cloud-SecretManager-V1-ListSecretsResponse#Google__Cloud__SecretManager__V1__ListSecretsResponse_next_page_token_instance_ "Google::Cloud::SecretManager::V1::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-v1/latest/Google-Cloud-SecretManager-V1-ListSecretsResponse#Google__Cloud__SecretManager__V1__ListSecretsResponse_next_page_token_instance_ "Google::Cloud::SecretManager::V1::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-v1/latest/Google-Cloud-SecretManager-V1-ListSecretsResponse#Google__Cloud__SecretManager__V1__ListSecretsResponse_next_page_token_instance_ "Google::Cloud::SecretManager::V1::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-v1/latest/Google-Cloud-SecretManager-V1-Secret "Google::Cloud::SecretManager::V1::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-v1/latest/Google-Cloud-SecretManager-V1-Secret "Google::Cloud::SecretManager::V1::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-v1/latest/Google-Cloud-SecretManager-V1-Secret "Google::Cloud::SecretManager::V1::Secret (class)"), in the format `projects/*` or `projects/*/locations/*`