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

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}

Parameters:

  • project (String)
  • location (String)
  • repository (String)
  • compilation_result (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

#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)


59
60
61
62
63
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 59

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}

Parameters:

  • project (String)
  • location (String)
  • repository (String)
  • release_config (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


78
79
80
81
82
83
84
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 78

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}

Parameters:

  • project (String)
  • location (String)
  • repository (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


98
99
100
101
102
103
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 98

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}

Parameters:

  • project (String)
  • secret (String)
  • version (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


117
118
119
120
121
122
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 117

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}

Parameters:

  • project (String)
  • location (String)
  • repository (String)
  • workflow_config (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


137
138
139
140
141
142
143
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 137

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}

Parameters:

  • project (String)
  • location (String)
  • repository (String)
  • workflow_invocation (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


158
159
160
161
162
163
164
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 158

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}

Parameters:

  • project (String)
  • location (String)
  • repository (String)
  • workspace (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


179
180
181
182
183
184
185
# File 'lib/google/cloud/dataform/v1beta1/dataform/paths.rb', line 179

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