Module: Google::Cloud::Container::V1::ClusterManager::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/container/v1/cluster_manager/paths.rb
Overview
Path helper methods for the ClusterManager API.
Instance Method Summary collapse
-
#ca_pool_path(project:, location:, ca_pool:) ⇒ ::String
Create a fully-qualified CaPool resource string.
-
#crypto_key_version_path(project:, location:, key_ring:, crypto_key:, crypto_key_version:) ⇒ ::String
Create a fully-qualified CryptoKeyVersion resource string.
-
#topic_path(project:, topic:) ⇒ ::String
Create a fully-qualified Topic resource string.
Instance Method Details
#ca_pool_path(project:, location:, ca_pool:) ⇒ ::String
Create a fully-qualified CaPool resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/caPools/{ca_pool}
39 40 41 42 43 44 |
# File 'lib/google/cloud/container/v1/cluster_manager/paths.rb', line 39 def ca_pool_path project:, location:, ca_pool: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/caPools/#{ca_pool}" end |
#crypto_key_version_path(project:, location:, key_ring:, crypto_key:, crypto_key_version:) ⇒ ::String
Create a fully-qualified CryptoKeyVersion resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
60 61 62 63 64 65 66 67 |
# File 'lib/google/cloud/container/v1/cluster_manager/paths.rb', line 60 def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" end |
#topic_path(project:, topic:) ⇒ ::String
Create a fully-qualified Topic resource string.
The resource will be in the following format:
projects/{project}/topics/{topic}
80 81 82 83 84 |
# File 'lib/google/cloud/container/v1/cluster_manager/paths.rb', line 80 def topic_path project:, topic: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/topics/#{topic}" end |