# Secret Manager V1 API - Class Google::Cloud::SecretManager::V1::ListSecretsResponse (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::ListSecretsResponse.

Response 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

### #next_page_token

    def next_page_token() -> ::String

**Returns**

- (::String) --- A token to retrieve the next page of results. Pass this value in [ListSecretsRequest.page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-ListSecretsRequest#Google__Cloud__SecretManager__V1__ListSecretsRequest_page_token_instance_ "Google::Cloud::SecretManager::V1::ListSecretsRequest#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 [ListSecretsRequest.page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-ListSecretsRequest#Google__Cloud__SecretManager__V1__ListSecretsRequest_page_token_instance_ "Google::Cloud::SecretManager::V1::ListSecretsRequest#page_token (method)") to retrieve the next page.
**Returns**

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

### #secrets

    def secrets() -> ::Array<::Google::Cloud::SecretManager::V1::Secret>

**Returns**

- (::Array\<[::Google::Cloud::SecretManager::V1::Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-Secret)\>) --- The list of [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)") sorted in reverse by create_time (newest first).

### #secrets=

    def secrets=(value) -> ::Array<::Google::Cloud::SecretManager::V1::Secret>

**Parameter**

- **value** (::Array\<[::Google::Cloud::SecretManager::V1::Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-Secret)\>) --- The list of [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)") sorted in reverse by create_time (newest first).
**Returns**

- (::Array\<[::Google::Cloud::SecretManager::V1::Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-Secret)\>) --- The list of [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)") sorted in reverse by create_time (newest first).

### #total_size

    def total_size() -> ::Integer

**Returns**

- (::Integer) --- The total number of [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)") but 0 when the [ListSecretsRequest.filter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-ListSecretsRequest#Google__Cloud__SecretManager__V1__ListSecretsRequest_filter_instance_ "Google::Cloud::SecretManager::V1::ListSecretsRequest#filter (method)") field is set.

### #total_size=

    def total_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The total number of [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)") but 0 when the [ListSecretsRequest.filter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-ListSecretsRequest#Google__Cloud__SecretManager__V1__ListSecretsRequest_filter_instance_ "Google::Cloud::SecretManager::V1::ListSecretsRequest#filter (method)") field is set.
**Returns**

- (::Integer) --- The total number of [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)") but 0 when the [ListSecretsRequest.filter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-ListSecretsRequest#Google__Cloud__SecretManager__V1__ListSecretsRequest_filter_instance_ "Google::Cloud::SecretManager::V1::ListSecretsRequest#filter (method)") field is set.