# Cloud Key Management Service (KMS) V1 API - Class Google::Cloud::Kms::V1::ListCryptoKeysRequest (v1.13.0)

1.13.0 (latest) 1.12.1 1.11.0 1.10.0 1.9.2 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.2 1.2.1 1.1.0 1.0.2 0.27.0 0.26.0 0.25.1 0.24.3 0.23.0 0.22.1 0.21.0 0.20.0 0.19.0 0.18.1 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 Reference documentation and code samples for the Cloud Key Management Service (KMS) V1 API class Google::Cloud::Kms::V1::ListCryptoKeysRequest.

Request message for
[KeyManagementService.ListCryptoKeys](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-KeyManagementService-Client#Google__Cloud__Kms__V1__KeyManagementService__Client_list_crypto_keys_instance_ "Google::Cloud::Kms::V1::KeyManagementService::Client#list_crypto_keys (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #filter

    def filter() -> ::String

**Returns**

- (::String) --- Optional. Only include resources that match the filter in the response. For more information, see [Sorting and filtering list
  results](https://cloud.google.com/kms/docs/sorting-and-filtering).

### #filter=

    def filter=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Only include resources that match the filter in the response. For more information, see [Sorting and filtering list
  results](https://cloud.google.com/kms/docs/sorting-and-filtering).
**Returns**

- (::String) --- Optional. Only include resources that match the filter in the response. For more information, see [Sorting and filtering list
  results](https://cloud.google.com/kms/docs/sorting-and-filtering).

### #order_by

    def order_by() -> ::String

**Returns**

- (::String) --- Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see [Sorting and filtering list
  results](https://cloud.google.com/kms/docs/sorting-and-filtering).

### #order_by=

    def order_by=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see [Sorting and filtering list
  results](https://cloud.google.com/kms/docs/sorting-and-filtering).
**Returns**

- (::String) --- Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see [Sorting and filtering list
  results](https://cloud.google.com/kms/docs/sorting-and-filtering).

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- Optional. Optional limit on the number of [CryptoKeys](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-CryptoKey "Google::Cloud::Kms::V1::CryptoKey (class)") to include in the response. Further [CryptoKeys](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-CryptoKey "Google::Cloud::Kms::V1::CryptoKey (class)") can subsequently be obtained by including the [ListCryptoKeysResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-ListCryptoKeysResponse#Google__Cloud__Kms__V1__ListCryptoKeysResponse_next_page_token_instance_ "Google::Cloud::Kms::V1::ListCryptoKeysResponse#next_page_token (method)") in a subsequent request. If unspecified, the server will pick an appropriate default.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. Optional limit on the number of [CryptoKeys](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-CryptoKey "Google::Cloud::Kms::V1::CryptoKey (class)") to include in the response. Further [CryptoKeys](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-CryptoKey "Google::Cloud::Kms::V1::CryptoKey (class)") can subsequently be obtained by including the [ListCryptoKeysResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-ListCryptoKeysResponse#Google__Cloud__Kms__V1__ListCryptoKeysResponse_next_page_token_instance_ "Google::Cloud::Kms::V1::ListCryptoKeysResponse#next_page_token (method)") in a subsequent request. If unspecified, the server will pick an appropriate default.
**Returns**

- (::Integer) --- Optional. Optional limit on the number of [CryptoKeys](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-CryptoKey "Google::Cloud::Kms::V1::CryptoKey (class)") to include in the response. Further [CryptoKeys](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-CryptoKey "Google::Cloud::Kms::V1::CryptoKey (class)") can subsequently be obtained by including the [ListCryptoKeysResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-ListCryptoKeysResponse#Google__Cloud__Kms__V1__ListCryptoKeysResponse_next_page_token_instance_ "Google::Cloud::Kms::V1::ListCryptoKeysResponse#next_page_token (method)") in a subsequent request. If unspecified, the server will pick an appropriate default.

### #page_token

    def page_token() -> ::String

**Returns**

- (::String) --- Optional. Optional pagination token, returned earlier via [ListCryptoKeysResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-ListCryptoKeysResponse#Google__Cloud__Kms__V1__ListCryptoKeysResponse_next_page_token_instance_ "Google::Cloud::Kms::V1::ListCryptoKeysResponse#next_page_token (method)").

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Optional pagination token, returned earlier via [ListCryptoKeysResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-ListCryptoKeysResponse#Google__Cloud__Kms__V1__ListCryptoKeysResponse_next_page_token_instance_ "Google::Cloud::Kms::V1::ListCryptoKeysResponse#next_page_token (method)").
**Returns**

- (::String) --- Optional. Optional pagination token, returned earlier via [ListCryptoKeysResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-ListCryptoKeysResponse#Google__Cloud__Kms__V1__ListCryptoKeysResponse_next_page_token_instance_ "Google::Cloud::Kms::V1::ListCryptoKeysResponse#next_page_token (method)").

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The resource name of the [KeyRing](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-KeyRing "Google::Cloud::Kms::V1::KeyRing (class)") to list, in the format `projects/*/locations/*/keyRings/*`.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the [KeyRing](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-KeyRing "Google::Cloud::Kms::V1::KeyRing (class)") to list, in the format `projects/*/locations/*/keyRings/*`.
**Returns**

- (::String) --- Required. The resource name of the [KeyRing](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-KeyRing "Google::Cloud::Kms::V1::KeyRing (class)") to list, in the format `projects/*/locations/*/keyRings/*`.

### #version_view

    def version_view() -> ::Google::Cloud::Kms::V1::CryptoKeyVersion::CryptoKeyVersionView

**Returns**

- ([::Google::Cloud::Kms::V1::CryptoKeyVersion::CryptoKeyVersionView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-CryptoKeyVersion-CryptoKeyVersionView)) --- The fields of the primary version to include in the response.

### #version_view=

    def version_view=(value) -> ::Google::Cloud::Kms::V1::CryptoKeyVersion::CryptoKeyVersionView

**Parameter**

- **value** ([::Google::Cloud::Kms::V1::CryptoKeyVersion::CryptoKeyVersionView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-CryptoKeyVersion-CryptoKeyVersionView)) --- The fields of the primary version to include in the response.
**Returns**

- ([::Google::Cloud::Kms::V1::CryptoKeyVersion::CryptoKeyVersionView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-CryptoKeyVersion-CryptoKeyVersionView)) --- The fields of the primary version to include in the response.