Cloud Key Management Service (KMS) V1 API - Module Google::Cloud::Kms::V1::Autokey::Paths (v1.2.1)

Reference documentation and code samples for the Cloud Key Management Service (KMS) V1 API module Google::Cloud::Kms::V1::Autokey::Paths.

Path helper methods for the Autokey API.

Methods

#crypto_key_path

def crypto_key_path(project:, location:, key_ring:, crypto_key:) -> ::String

Create a fully-qualified CryptoKey resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}

Parameters
  • project (String)
  • location (String)
  • key_ring (String)
  • crypto_key (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#key_handle_path

def key_handle_path(project:, location:, key_handle:) -> ::String

Create a fully-qualified KeyHandle resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/keyHandles/{key_handle}

Parameters
  • project (String)
  • location (String)
  • key_handle (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#location_path

def location_path(project:, location:) -> ::String

Create a fully-qualified Location resource string.

The resource will be in the following format:

projects/{project}/locations/{location}

Parameters
  • project (String)
  • location (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)