Module: Google::Cloud::MigrationCenter::V1::MigrationCenter::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/migration_center/v1/migration_center/paths.rb
Overview
Path helper methods for the MigrationCenter API.
Instance Method Summary collapse
-
#asset_path(project:, location:, asset:) ⇒ ::String
Create a fully-qualified Asset resource string.
-
#error_frame_path(project:, location:, source:, error_frame:) ⇒ ::String
Create a fully-qualified ErrorFrame resource string.
-
#group_path(project:, location:, group:) ⇒ ::String
Create a fully-qualified Group resource string.
-
#import_data_file_path(project:, location:, import_job:, import_data_file:) ⇒ ::String
Create a fully-qualified ImportDataFile resource string.
-
#import_job_path(project:, location:, import_job:) ⇒ ::String
Create a fully-qualified ImportJob resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#preference_set_path(project:, location:, preference_set:) ⇒ ::String
Create a fully-qualified PreferenceSet resource string.
-
#report_config_path(project:, location:, report_config:) ⇒ ::String
Create a fully-qualified ReportConfig resource string.
-
#report_path(project:, location:, report_config:, report:) ⇒ ::String
Create a fully-qualified Report resource string.
-
#settings_path(project:, location:) ⇒ ::String
Create a fully-qualified Settings resource string.
-
#source_path(project:, location:, source:) ⇒ ::String
Create a fully-qualified Source resource string.
Instance Method Details
#asset_path(project:, location:, asset:) ⇒ ::String
Create a fully-qualified Asset resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/assets/{asset}
39 40 41 42 43 44 |
# File 'lib/google/cloud/migration_center/v1/migration_center/paths.rb', line 39 def asset_path project:, location:, asset: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/assets/#{asset}" end |
#error_frame_path(project:, location:, source:, error_frame:) ⇒ ::String
Create a fully-qualified ErrorFrame resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}
59 60 61 62 63 64 65 |
# File 'lib/google/cloud/migration_center/v1/migration_center/paths.rb', line 59 def error_frame_path project:, location:, source:, error_frame: 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}/errorFrames/#{error_frame}" end |
#group_path(project:, location:, group:) ⇒ ::String
Create a fully-qualified Group resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/groups/{group}
79 80 81 82 83 84 |
# File 'lib/google/cloud/migration_center/v1/migration_center/paths.rb', line 79 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 |
#import_data_file_path(project:, location:, import_job:, import_data_file:) ⇒ ::String
Create a fully-qualified ImportDataFile resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/importJobs/{import_job}/importDataFiles/{import_data_file}
99 100 101 102 103 104 105 |
# File 'lib/google/cloud/migration_center/v1/migration_center/paths.rb', line 99 def import_data_file_path project:, location:, import_job:, import_data_file: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "import_job cannot contain /" if import_job.to_s.include? "/" "projects/#{project}/locations/#{location}/importJobs/#{import_job}/importDataFiles/#{import_data_file}" end |
#import_job_path(project:, location:, import_job:) ⇒ ::String
Create a fully-qualified ImportJob resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/importJobs/{import_job}
119 120 121 122 123 124 |
# File 'lib/google/cloud/migration_center/v1/migration_center/paths.rb', line 119 def import_job_path project:, location:, import_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}/importJobs/#{import_job}" 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}
137 138 139 140 141 |
# File 'lib/google/cloud/migration_center/v1/migration_center/paths.rb', line 137 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#preference_set_path(project:, location:, preference_set:) ⇒ ::String
Create a fully-qualified PreferenceSet resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/preferenceSets/{preference_set}
155 156 157 158 159 160 |
# File 'lib/google/cloud/migration_center/v1/migration_center/paths.rb', line 155 def preference_set_path project:, location:, preference_set: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/preferenceSets/#{preference_set}" end |
#report_config_path(project:, location:, report_config:) ⇒ ::String
Create a fully-qualified ReportConfig resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/reportConfigs/{report_config}
195 196 197 198 199 200 |
# File 'lib/google/cloud/migration_center/v1/migration_center/paths.rb', line 195 def report_config_path project:, location:, report_config: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/reportConfigs/#{report_config}" end |
#report_path(project:, location:, report_config:, report:) ⇒ ::String
Create a fully-qualified Report resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/reportConfigs/{report_config}/reports/{report}
175 176 177 178 179 180 181 |
# File 'lib/google/cloud/migration_center/v1/migration_center/paths.rb', line 175 def report_path project:, location:, report_config:, report: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "report_config cannot contain /" if report_config.to_s.include? "/" "projects/#{project}/locations/#{location}/reportConfigs/#{report_config}/reports/#{report}" end |
#settings_path(project:, location:) ⇒ ::String
Create a fully-qualified Settings resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/settings
213 214 215 216 217 |
# File 'lib/google/cloud/migration_center/v1/migration_center/paths.rb', line 213 def settings_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}/settings" end |
#source_path(project:, location:, source:) ⇒ ::String
Create a fully-qualified Source resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/sources/{source}
231 232 233 234 235 236 |
# File 'lib/google/cloud/migration_center/v1/migration_center/paths.rb', line 231 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 |