module Google::Cloud::CloudDMS::V1::DataMigrationService::Paths

Path helper methods for the DataMigrationService API.

Public Instance Methods

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

Create a fully-qualified ConnectionProfile resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/connectionProfiles/{connection_profile}`

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

@return [::String]

# File lib/google/cloud/cloud_dms/v1/data_migration_service/paths.rb, line 39
def connection_profile_path project:, location:, connection_profile:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/connectionProfiles/#{connection_profile}"
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/cloud_dms/v1/data_migration_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
migration_job_path(project:, location:, migration_job: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified MigrationJob resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/migrationJobs/{migration_job}`

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

@return [::String]

# File lib/google/cloud/cloud_dms/v1/data_migration_service/paths.rb, line 75
def migration_job_path project:, location:, migration_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}/migrationJobs/#{migration_job}"
end