Module: Google::Cloud::AIPlatform::V1::ModelService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/cloud/ai_platform/v1/model_service/paths.rb
Overview
Path helper methods for the ModelService API.
Instance Method Summary collapse
-
#endpoint_path(project:, location:, endpoint:) ⇒ ::String
Create a fully-qualified Endpoint resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#model_evaluation_path(project:, location:, model:, evaluation:) ⇒ ::String
Create a fully-qualified ModelEvaluation resource string.
-
#model_evaluation_slice_path(project:, location:, model:, evaluation:, slice:) ⇒ ::String
Create a fully-qualified ModelEvaluationSlice resource string.
-
#model_path(project:, location:, model:) ⇒ ::String
Create a fully-qualified Model resource string.
-
#training_pipeline_path(project:, location:, training_pipeline:) ⇒ ::String
Create a fully-qualified TrainingPipeline resource string.
Instance Method Details
#endpoint_path(project:, location:, endpoint:) ⇒ ::String
Create a fully-qualified Endpoint resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/endpoints/{endpoint}
39 40 41 42 43 44 |
# File 'lib/google/cloud/ai_platform/v1/model_service/paths.rb', line 39 def endpoint_path project:, location:, endpoint: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/endpoints/#{endpoint}" 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}
57 58 59 60 61 |
# File 'lib/google/cloud/ai_platform/v1/model_service/paths.rb', line 57 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#model_evaluation_path(project:, location:, model:, evaluation:) ⇒ ::String
Create a fully-qualified ModelEvaluation resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}
95 96 97 98 99 100 101 |
# File 'lib/google/cloud/ai_platform/v1/model_service/paths.rb', line 95 def model_evaluation_path project:, location:, model:, evaluation: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "model cannot contain /" if model.to_s.include? "/" "projects/#{project}/locations/#{location}/models/#{model}/evaluations/#{evaluation}" end |
#model_evaluation_slice_path(project:, location:, model:, evaluation:, slice:) ⇒ ::String
Create a fully-qualified ModelEvaluationSlice resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}
117 118 119 120 121 122 123 124 |
# File 'lib/google/cloud/ai_platform/v1/model_service/paths.rb', line 117 def model_evaluation_slice_path project:, location:, model:, evaluation:, slice: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "model cannot contain /" if model.to_s.include? "/" raise ::ArgumentError, "evaluation cannot contain /" if evaluation.to_s.include? "/" "projects/#{project}/locations/#{location}/models/#{model}/evaluations/#{evaluation}/slices/#{slice}" end |
#model_path(project:, location:, model:) ⇒ ::String
Create a fully-qualified Model resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/models/{model}
75 76 77 78 79 80 |
# File 'lib/google/cloud/ai_platform/v1/model_service/paths.rb', line 75 def model_path project:, location:, model: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/models/#{model}" end |
#training_pipeline_path(project:, location:, training_pipeline:) ⇒ ::String
Create a fully-qualified TrainingPipeline resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}
138 139 140 141 142 143 |
# File 'lib/google/cloud/ai_platform/v1/model_service/paths.rb', line 138 def training_pipeline_path project:, location:, training_pipeline: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/trainingPipelines/#{training_pipeline}" end |