Module: Google::Cloud::AIPlatform::V1::ScheduleService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/cloud/ai_platform/v1/schedule_service/paths.rb

Overview

Path helper methods for the ScheduleService API.

Instance Method Summary collapse

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}

Parameters:

  • project (String)
  • location (String)
  • metadata_store (String)
  • artifact (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


40
41
42
43
44
45
46
# File 'lib/google/cloud/ai_platform/v1/schedule_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/#{metadata_store}/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}

Parameters:

  • project (String)
  • location (String)
  • metadata_store (String)
  • context (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


61
62
63
64
65
66
67
# File 'lib/google/cloud/ai_platform/v1/schedule_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/#{metadata_store}/contexts/#{context}"
end

#custom_job_path(project:, location:, custom_job:) ⇒ ::String

Create a fully-qualified CustomJob resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/customJobs/{custom_job}

Parameters:

  • project (String)
  • location (String)
  • custom_job (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


81
82
83
84
85
86
# File 'lib/google/cloud/ai_platform/v1/schedule_service/paths.rb', line 81

def custom_job_path project:, location:, custom_job:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/customJobs/#{custom_job}"
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}

Parameters:

  • project (String)
  • location (String)
  • metadata_store (String)
  • execution (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


101
102
103
104
105
106
107
# File 'lib/google/cloud/ai_platform/v1/schedule_service/paths.rb', line 101

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/#{metadata_store}/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}

Parameters:

  • project (String)
  • location (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


120
121
122
123
124
# File 'lib/google/cloud/ai_platform/v1/schedule_service/paths.rb', line 120

def location_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/locations/#{location}"
end

#network_attachment_path(project:, region:, networkattachment:) ⇒ ::String

Create a fully-qualified NetworkAttachment resource string.

The resource will be in the following format:

projects/{project}/regions/{region}/networkAttachments/{networkattachment}

Parameters:

  • project (String)
  • region (String)
  • networkattachment (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


155
156
157
158
159
160
# File 'lib/google/cloud/ai_platform/v1/schedule_service/paths.rb', line 155

def network_attachment_path project:, region:, networkattachment:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"

  "projects/#{project}/regions/#{region}/networkAttachments/#{networkattachment}"
end

#network_path(project:, network:) ⇒ ::String

Create a fully-qualified Network resource string.

The resource will be in the following format:

projects/{project}/global/networks/{network}

Parameters:

  • project (String)
  • network (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


137
138
139
140
141
# File 'lib/google/cloud/ai_platform/v1/schedule_service/paths.rb', line 137

def network_path project:, network:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/global/networks/#{network}"
end

#notebook_execution_job_path(project:, location:, notebook_execution_job:) ⇒ ::String

Create a fully-qualified NotebookExecutionJob resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}

Parameters:

  • project (String)
  • location (String)
  • notebook_execution_job (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


174
175
176
177
178
179
# File 'lib/google/cloud/ai_platform/v1/schedule_service/paths.rb', line 174

def notebook_execution_job_path project:, location:, notebook_execution_job:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/notebookExecutionJobs/#{notebook_execution_job}"
end

#notebook_runtime_template_path(project:, location:, notebook_runtime_template:) ⇒ ::String

Create a fully-qualified NotebookRuntimeTemplate resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}

Parameters:

  • project (String)
  • location (String)
  • notebook_runtime_template (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


193
194
195
196
197
198
# File 'lib/google/cloud/ai_platform/v1/schedule_service/paths.rb', line 193

def notebook_runtime_template_path project:, location:, notebook_runtime_template:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/notebookRuntimeTemplates/#{notebook_runtime_template}"
end

#pipeline_job_path(project:, location:, pipeline_job:) ⇒ ::String

Create a fully-qualified PipelineJob resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}

Parameters:

  • project (String)
  • location (String)
  • pipeline_job (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


212
213
214
215
216
217
# File 'lib/google/cloud/ai_platform/v1/schedule_service/paths.rb', line 212

def pipeline_job_path project:, location:, pipeline_job:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/pipelineJobs/#{pipeline_job}"
end

#reservation_path(project_id_or_number:, zone:, reservation_name:) ⇒ ::String

Create a fully-qualified Reservation resource string.

The resource will be in the following format:

projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}

Parameters:

  • project_id_or_number (String)
  • zone (String)
  • reservation_name (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


231
232
233
234
235
236
# File 'lib/google/cloud/ai_platform/v1/schedule_service/paths.rb', line 231

def reservation_path project_id_or_number:, zone:, reservation_name:
  raise ::ArgumentError, "project_id_or_number cannot contain /" if project_id_or_number.to_s.include? "/"
  raise ::ArgumentError, "zone cannot contain /" if zone.to_s.include? "/"

  "projects/#{project_id_or_number}/zones/#{zone}/reservations/#{reservation_name}"
end

#schedule_path(project:, location:, schedule:) ⇒ ::String

Create a fully-qualified Schedule resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/schedules/{schedule}

Parameters:

  • project (String)
  • location (String)
  • schedule (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


250
251
252
253
254
255
# File 'lib/google/cloud/ai_platform/v1/schedule_service/paths.rb', line 250

def schedule_path project:, location:, schedule:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/schedules/#{schedule}"
end

#subnetwork_path(project:, region:, subnetwork:) ⇒ ::String

Create a fully-qualified Subnetwork resource string.

The resource will be in the following format:

projects/{project}/regions/{region}/subnetworks/{subnetwork}

Parameters:

  • project (String)
  • region (String)
  • subnetwork (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


269
270
271
272
273
274
# File 'lib/google/cloud/ai_platform/v1/schedule_service/paths.rb', line 269

def subnetwork_path project:, region:, subnetwork:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"

  "projects/#{project}/regions/#{region}/subnetworks/#{subnetwork}"
end