Module: Google::Cloud::Kms::V1::EkmService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/kms/v1/ekm_service/paths.rb
Overview
Path helper methods for the EkmService API.
Instance Method Summary collapse
-
#ekm_config_path(project:, location:) ⇒ ::String
Create a fully-qualified EkmConfig resource string.
-
#ekm_connection_path(project:, location:, ekm_connection:) ⇒ ::String
Create a fully-qualified EkmConnection resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#service_path(project:, location:, namespace:, service:) ⇒ ::String
Create a fully-qualified Service resource string.
Instance Method Details
#ekm_config_path(project:, location:) ⇒ ::String
Create a fully-qualified EkmConfig resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/ekmConfig
38 39 40 41 42 |
# File 'lib/google/cloud/kms/v1/ekm_service/paths.rb', line 38 def ekm_config_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}/ekmConfig" end |
#ekm_connection_path(project:, location:, ekm_connection:) ⇒ ::String
Create a fully-qualified EkmConnection resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/ekmConnections/{ekm_connection}
56 57 58 59 60 61 |
# File 'lib/google/cloud/kms/v1/ekm_service/paths.rb', line 56 def ekm_connection_path project:, location:, ekm_connection: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/ekmConnections/#{ekm_connection}" end |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
74 75 76 77 78 |
# File 'lib/google/cloud/kms/v1/ekm_service/paths.rb', line 74 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#service_path(project:, location:, namespace:, service:) ⇒ ::String
Create a fully-qualified Service resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}
93 94 95 96 97 98 99 |
# File 'lib/google/cloud/kms/v1/ekm_service/paths.rb', line 93 def service_path project:, location:, namespace:, service: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "namespace cannot contain /" if namespace.to_s.include? "/" "projects/#{project}/locations/#{location}/namespaces/#{namespace}/services/#{service}" end |