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

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}

Parameters:

  • project (String)
  • location (String)
  • app (String)
  • agent (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • app (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • app (String)
  • version (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • app (String)
  • changelog (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • app (String)
  • conversation (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • app (String)
  • evaluation_dataset (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • app (String)
  • evaluation_expectation (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • app (String)
  • evaluation (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • app (String)
  • evaluation (String)
  • evaluation_result (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • app (String)
  • evaluation_run (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • app (String)
  • scheduled_evaluation_run (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • app (String)
  • tool (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • app (String)
  • toolset (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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