Module: Google::Cloud::AIPlatform::V1::MetadataService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/ai_platform/v1/metadata_service/paths.rb
Overview
Path helper methods for the MetadataService API.
Instance Method Summary collapse
-
#artifact_path(project:, location:, metadata_store:, artifact:) ⇒ ::String
Create a fully-qualified Artifact resource string.
-
#context_path(project:, location:, metadata_store:, context:) ⇒ ::String
Create a fully-qualified Context resource string.
-
#execution_path(project:, location:, metadata_store:, execution:) ⇒ ::String
Create a fully-qualified Execution resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#metadata_schema_path(project:, location:, metadata_store:, metadata_schema:) ⇒ ::String
Create a fully-qualified MetadataSchema resource string.
-
#metadata_store_path(project:, location:, metadata_store:) ⇒ ::String
Create a fully-qualified MetadataStore resource string.
Instance Method Details
#artifact_path(project:, location:, metadata_store:, artifact:) ⇒ ::String
Create a fully-qualified Artifact resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/ai_platform/v1/metadata_service/paths.rb', line 40 def artifact_path project:, location:, metadata_store:, artifact: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "metadata_store cannot contain /" if .to_s.include? "/" "projects/#{project}/locations/#{location}/metadataStores/#{}/artifacts/#{artifact}" end |
#context_path(project:, location:, metadata_store:, context:) ⇒ ::String
Create a fully-qualified Context resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}
61 62 63 64 65 66 67 |
# File 'lib/google/cloud/ai_platform/v1/metadata_service/paths.rb', line 61 def context_path project:, location:, metadata_store:, context: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "metadata_store cannot contain /" if .to_s.include? "/" "projects/#{project}/locations/#{location}/metadataStores/#{}/contexts/#{context}" end |
#execution_path(project:, location:, metadata_store:, execution:) ⇒ ::String
Create a fully-qualified Execution resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}
82 83 84 85 86 87 88 |
# File 'lib/google/cloud/ai_platform/v1/metadata_service/paths.rb', line 82 def execution_path project:, location:, metadata_store:, execution: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "metadata_store cannot contain /" if .to_s.include? "/" "projects/#{project}/locations/#{location}/metadataStores/#{}/executions/#{execution}" 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}
101 102 103 104 105 |
# File 'lib/google/cloud/ai_platform/v1/metadata_service/paths.rb', line 101 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#metadata_schema_path(project:, location:, metadata_store:, metadata_schema:) ⇒ ::String
Create a fully-qualified MetadataSchema resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}
120 121 122 123 124 125 126 |
# File 'lib/google/cloud/ai_platform/v1/metadata_service/paths.rb', line 120 def project:, location:, metadata_store:, metadata_schema: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "metadata_store cannot contain /" if .to_s.include? "/" "projects/#{project}/locations/#{location}/metadataStores/#{}/metadataSchemas/#{}" end |
#metadata_store_path(project:, location:, metadata_store:) ⇒ ::String
Create a fully-qualified MetadataStore resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/metadataStores/{metadata_store}
140 141 142 143 144 145 |
# File 'lib/google/cloud/ai_platform/v1/metadata_service/paths.rb', line 140 def project:, location:, metadata_store: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/metadataStores/#{}" end |