Module: Google::Cloud::Dataform::V1beta1::Dataform::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/dataform/v1beta1/dataform/paths.rb
Overview
Path helper methods for the Dataform API.
Instance Method Summary collapse
-
#compilation_result_path(project:, location:, repository:, compilation_result:) ⇒ ::String
Create a fully-qualified CompilationResult resource string.
-
#config_path(project:, location:) ⇒ ::String
Create a fully-qualified Config resource string.
-
#crypto_key_path(project:, location:, key_ring:, crypto_key:) ⇒ ::String
Create a fully-qualified CryptoKey resource string.
-
#crypto_key_version_path(project:, location:, key_ring:, crypto_key:, crypto_key_version:) ⇒ ::String
Create a fully-qualified CryptoKeyVersion resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#release_config_path(project:, location:, repository:, release_config:) ⇒ ::String
Create a fully-qualified ReleaseConfig resource string.
-
#repository_path(project:, location:, repository:) ⇒ ::String
Create a fully-qualified Repository resource string.
-
#secret_version_path(project:, secret:, version:) ⇒ ::String
Create a fully-qualified SecretVersion resource string.
-
#workflow_config_path(project:, location:, repository:, workflow_config:) ⇒ ::String
Create a fully-qualified WorkflowConfig resource string.
-
#workflow_invocation_path(project:, location:, repository:, workflow_invocation:) ⇒ ::String
Create a fully-qualified WorkflowInvocation resource string.
-
#workspace_path(project:, location:, repository:, workspace:) ⇒ ::String
Create a fully-qualified Workspace resource string.
Instance Method Details
#compilation_result_path(project:, location:, repository:, compilation_result:) ⇒ ::String
Create a fully-qualified CompilationResult resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 40 def compilation_result_path project:, location:, repository:, compilation_result: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" "projects/#{project}/locations/#{location}/repositories/#{repository}/compilationResults/#{compilation_result}" end |
#config_path(project:, location:) ⇒ ::String
Create a fully-qualified Config resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/config
59 60 61 62 63 |
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 59 def config_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}/config" end |
#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}
78 79 80 81 82 83 84 |
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 78 def crypto_key_path project:, location:, key_ring:, crypto_key: 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? "/" "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" 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}
100 101 102 103 104 105 106 107 |
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 100 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 |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
120 121 122 123 124 |
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 120 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#release_config_path(project:, location:, repository:, release_config:) ⇒ ::String
Create a fully-qualified ReleaseConfig resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}
139 140 141 142 143 144 145 |
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 139 def release_config_path project:, location:, repository:, release_config: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" "projects/#{project}/locations/#{location}/repositories/#{repository}/releaseConfigs/#{release_config}" end |
#repository_path(project:, location:, repository:) ⇒ ::String
Create a fully-qualified Repository resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/repositories/{repository}
159 160 161 162 163 164 |
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 159 def repository_path project:, location:, repository: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/repositories/#{repository}" end |
#secret_version_path(project:, secret:, version:) ⇒ ::String
Create a fully-qualified SecretVersion resource string.
The resource will be in the following format:
projects/{project}/secrets/{secret}/versions/{version}
178 179 180 181 182 183 |
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 178 def secret_version_path project:, secret:, version: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" "projects/#{project}/secrets/#{secret}/versions/#{version}" end |
#workflow_config_path(project:, location:, repository:, workflow_config:) ⇒ ::String
Create a fully-qualified WorkflowConfig resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}
198 199 200 201 202 203 204 |
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 198 def workflow_config_path project:, location:, repository:, workflow_config: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowConfigs/#{workflow_config}" end |
#workflow_invocation_path(project:, location:, repository:, workflow_invocation:) ⇒ ::String
Create a fully-qualified WorkflowInvocation resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}
219 220 221 222 223 224 225 |
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 219 def workflow_invocation_path project:, location:, repository:, workflow_invocation: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowInvocations/#{workflow_invocation}" end |
#workspace_path(project:, location:, repository:, workspace:) ⇒ ::String
Create a fully-qualified Workspace resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}
240 241 242 243 244 245 246 |
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 240 def workspace_path project:, location:, repository:, workspace: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" "projects/#{project}/locations/#{location}/repositories/#{repository}/workspaces/#{workspace}" end |