module Google::Cloud::VMMigration::V1::VMMigration::Paths

Path helper methods for the VmMigration API.

Public Instance Methods

clone_job_path(project:, location:, source:, migrating_vm:, clone_job: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified CloneJob resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}/sources/{source}/migratingVms/{migrating_vm}/cloneJobs/{clone_job}`

@param project [String] @param location [String] @param source [String] @param migrating_vm [String] @param clone_job [String]

@return [::String]

# File lib/google/cloud/vm_migration/v1/vm_migration/paths.rb, line 41
def clone_job_path project:, location:, source:, migrating_vm:, clone_job:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "source cannot contain /" if source.to_s.include? "/"
  raise ::ArgumentError, "migrating_vm cannot contain /" if migrating_vm.to_s.include? "/"

  "projects/#{project}/locations/#{location}/sources/#{source}/migratingVms/#{migrating_vm}/cloneJobs/#{clone_job}"
end
cutover_job_path(project:, location:, source:, migrating_vm:, cutover_job: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified CutoverJob resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}/sources/{source}/migratingVms/{migrating_vm}/cutoverJobs/{cutover_job}`

@param project [String] @param location [String] @param source [String] @param migrating_vm [String] @param cutover_job [String]

@return [::String]

# File lib/google/cloud/vm_migration/v1/vm_migration/paths.rb, line 64
def cutover_job_path project:, location:, source:, migrating_vm:, cutover_job:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "source cannot contain /" if source.to_s.include? "/"
  raise ::ArgumentError, "migrating_vm cannot contain /" if migrating_vm.to_s.include? "/"

  "projects/#{project}/locations/#{location}/sources/#{source}/migratingVms/#{migrating_vm}/cutoverJobs/#{cutover_job}"
end
datacenter_connector_path(project:, location:, source:, datacenter_connector: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified DatacenterConnector resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}/sources/{source}/datacenterConnectors/{datacenter_connector}`

@param project [String] @param location [String] @param source [String] @param datacenter_connector [String]

@return [::String]

# File lib/google/cloud/vm_migration/v1/vm_migration/paths.rb, line 86
def datacenter_connector_path project:, location:, source:, datacenter_connector:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "source cannot contain /" if source.to_s.include? "/"

  "projects/#{project}/locations/#{location}/sources/#{source}/datacenterConnectors/#{datacenter_connector}"
end
group_path(project:, location:, group: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Group resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}/groups/{group}`

@param project [String] @param location [String] @param group [String]

@return [::String]

# File lib/google/cloud/vm_migration/v1/vm_migration/paths.rb, line 106
def group_path project:, location:, group:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/groups/#{group}"
end
location_path(project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Location resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}`

@param project [String] @param location [String]

@return [::String]

# File lib/google/cloud/vm_migration/v1/vm_migration/paths.rb, line 124
def location_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/locations/#{location}"
end
migrating_vm_path(project:, location:, source:, migrating_vm: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified MigratingVm resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}/sources/{source}/migratingVms/{migrating_vm}`

@param project [String] @param location [String] @param source [String] @param migrating_vm [String]

@return [::String]

# File lib/google/cloud/vm_migration/v1/vm_migration/paths.rb, line 143
def migrating_vm_path project:, location:, source:, migrating_vm:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "source cannot contain /" if source.to_s.include? "/"

  "projects/#{project}/locations/#{location}/sources/#{source}/migratingVms/#{migrating_vm}"
end
source_path(project:, location:, source: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Source resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}/sources/{source}`

@param project [String] @param location [String] @param source [String]

@return [::String]

# File lib/google/cloud/vm_migration/v1/vm_migration/paths.rb, line 163
def source_path project:, location:, source:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/sources/#{source}"
end
target_project_path(project:, location:, target_project: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified TargetProject resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}/targetProjects/{target_project}`

@param project [String] @param location [String] @param target_project [String]

@return [::String]

# File lib/google/cloud/vm_migration/v1/vm_migration/paths.rb, line 182
def target_project_path project:, location:, target_project:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/targetProjects/#{target_project}"
end
utilization_report_path(project:, location:, source:, utilization_report: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified UtilizationReport resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}/sources/{source}/utilizationReports/{utilization_report}`

@param project [String] @param location [String] @param source [String] @param utilization_report [String]

@return [::String]

# File lib/google/cloud/vm_migration/v1/vm_migration/paths.rb, line 202
def utilization_report_path project:, location:, source:, utilization_report:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "source cannot contain /" if source.to_s.include? "/"

  "projects/#{project}/locations/#{location}/sources/#{source}/utilizationReports/#{utilization_report}"
end