Module: Google::Cloud::Ces::V1beta::EvaluationService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/ces/v1beta/evaluation_service/paths.rb
Overview
Path helper methods for the EvaluationService API.
Instance Method Summary collapse
-
#agent_path(project:, location:, app:, agent:) ⇒ ::String
Create a fully-qualified Agent resource string.
-
#app_path(project:, location:, app:) ⇒ ::String
Create a fully-qualified App resource string.
-
#app_version_path(project:, location:, app:, version:) ⇒ ::String
Create a fully-qualified AppVersion resource string.
-
#changelog_path(project:, location:, app:, changelog:) ⇒ ::String
Create a fully-qualified Changelog resource string.
-
#conversation_path(project:, location:, app:, conversation:) ⇒ ::String
Create a fully-qualified Conversation resource string.
-
#evaluation_dataset_path(project:, location:, app:, evaluation_dataset:) ⇒ ::String
Create a fully-qualified EvaluationDataset resource string.
-
#evaluation_expectation_path(project:, location:, app:, evaluation_expectation:) ⇒ ::String
Create a fully-qualified EvaluationExpectation resource string.
-
#evaluation_path(project:, location:, app:, evaluation:) ⇒ ::String
Create a fully-qualified Evaluation resource string.
-
#evaluation_result_path(project:, location:, app:, evaluation:, evaluation_result:) ⇒ ::String
Create a fully-qualified EvaluationResult resource string.
-
#evaluation_run_path(project:, location:, app:, evaluation_run:) ⇒ ::String
Create a fully-qualified EvaluationRun resource string.
-
#scheduled_evaluation_run_path(project:, location:, app:, scheduled_evaluation_run:) ⇒ ::String
Create a fully-qualified ScheduledEvaluationRun resource string.
-
#tool_path(project:, location:, app:, tool:) ⇒ ::String
Create a fully-qualified Tool resource string.
-
#toolset_path(project:, location:, app:, toolset:) ⇒ ::String
Create a fully-qualified Toolset resource string.
Instance Method Details
#agent_path(project:, location:, app:, agent:) ⇒ ::String
Create a fully-qualified Agent resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 40 def agent_path project:, location:, app:, agent: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}/agents/#{agent}" end |
#app_path(project:, location:, app:) ⇒ ::String
Create a fully-qualified App resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}
60 61 62 63 64 65 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 60 def app_path project:, location:, app: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}" end |
#app_version_path(project:, location:, app:, version:) ⇒ ::String
Create a fully-qualified AppVersion resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}/versions/{version}
80 81 82 83 84 85 86 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 80 def app_version_path project:, location:, app:, version: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}/versions/#{version}" end |
#changelog_path(project:, location:, app:, changelog:) ⇒ ::String
Create a fully-qualified Changelog resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}
101 102 103 104 105 106 107 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 101 def changelog_path project:, location:, app:, changelog: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}/changelogs/#{changelog}" end |
#conversation_path(project:, location:, app:, conversation:) ⇒ ::String
Create a fully-qualified Conversation resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}
122 123 124 125 126 127 128 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 122 def conversation_path project:, location:, app:, conversation: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}/conversations/#{conversation}" end |
#evaluation_dataset_path(project:, location:, app:, evaluation_dataset:) ⇒ ::String
Create a fully-qualified EvaluationDataset resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluation_dataset}
164 165 166 167 168 169 170 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 164 def evaluation_dataset_path project:, location:, app:, evaluation_dataset: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}/evaluationDatasets/#{evaluation_dataset}" end |
#evaluation_expectation_path(project:, location:, app:, evaluation_expectation:) ⇒ ::String
Create a fully-qualified EvaluationExpectation resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}
185 186 187 188 189 190 191 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 185 def evaluation_expectation_path project:, location:, app:, evaluation_expectation: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}/evaluationExpectations/#{evaluation_expectation}" end |
#evaluation_path(project:, location:, app:, evaluation:) ⇒ ::String
Create a fully-qualified Evaluation resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}
143 144 145 146 147 148 149 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 143 def evaluation_path project:, location:, app:, evaluation: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}/evaluations/#{evaluation}" end |
#evaluation_result_path(project:, location:, app:, evaluation:, evaluation_result:) ⇒ ::String
Create a fully-qualified EvaluationResult resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{evaluation_result}
207 208 209 210 211 212 213 214 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 207 def evaluation_result_path project:, location:, app:, evaluation:, evaluation_result: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/" raise ::ArgumentError, "evaluation cannot contain /" if evaluation.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}/evaluations/#{evaluation}/results/#{evaluation_result}" end |
#evaluation_run_path(project:, location:, app:, evaluation_run:) ⇒ ::String
Create a fully-qualified EvaluationRun resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluation_run}
229 230 231 232 233 234 235 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 229 def evaluation_run_path project:, location:, app:, evaluation_run: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}/evaluationRuns/#{evaluation_run}" end |
#scheduled_evaluation_run_path(project:, location:, app:, scheduled_evaluation_run:) ⇒ ::String
Create a fully-qualified ScheduledEvaluationRun resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}
250 251 252 253 254 255 256 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 250 def scheduled_evaluation_run_path project:, location:, app:, scheduled_evaluation_run: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}/scheduledEvaluationRuns/#{scheduled_evaluation_run}" end |
#tool_path(project:, location:, app:, tool:) ⇒ ::String
Create a fully-qualified Tool resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}/tools/{tool}
271 272 273 274 275 276 277 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 271 def tool_path project:, location:, app:, tool: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}/tools/#{tool}" end |
#toolset_path(project:, location:, app:, toolset:) ⇒ ::String
Create a fully-qualified Toolset resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}
292 293 294 295 296 297 298 |
# File 'lib/google/cloud/ces/v1beta/evaluation_service/paths.rb', line 292 def toolset_path project:, location:, app:, toolset: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/" "projects/#{project}/locations/#{location}/apps/#{app}/toolsets/#{toolset}" end |