google-cloud-vm_migration-v1 2.1.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,6 +47,27 @@ module Google
47
47
  "projects/#{project}/locations/#{location}/sources/#{source}/migratingVms/#{migrating_vm}/cloneJobs/#{clone_job}"
48
48
  end
49
49
 
50
+ ##
51
+ # Create a fully-qualified CryptoKey resource string.
52
+ #
53
+ # The resource will be in the following format:
54
+ #
55
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
56
+ #
57
+ # @param project [String]
58
+ # @param location [String]
59
+ # @param key_ring [String]
60
+ # @param crypto_key [String]
61
+ #
62
+ # @return [::String]
63
+ def crypto_key_path project:, location:, key_ring:, crypto_key:
64
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
65
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
66
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
67
+
68
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
69
+ end
70
+
50
71
  ##
51
72
  # Create a fully-qualified CutoverJob resource string.
52
73
  #
@@ -91,6 +112,27 @@ module Google
91
112
  "projects/#{project}/locations/#{location}/sources/#{source}/datacenterConnectors/#{datacenter_connector}"
92
113
  end
93
114
 
115
+ ##
116
+ # Create a fully-qualified DiskMigrationJob resource string.
117
+ #
118
+ # The resource will be in the following format:
119
+ #
120
+ # `projects/{project}/locations/{location}/sources/{source}/diskMigrationJobs/{disk_migration_job}`
121
+ #
122
+ # @param project [String]
123
+ # @param location [String]
124
+ # @param source [String]
125
+ # @param disk_migration_job [String]
126
+ #
127
+ # @return [::String]
128
+ def disk_migration_job_path project:, location:, source:, disk_migration_job:
129
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
130
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
131
+ raise ::ArgumentError, "source cannot contain /" if source.to_s.include? "/"
132
+
133
+ "projects/#{project}/locations/#{location}/sources/#{source}/diskMigrationJobs/#{disk_migration_job}"
134
+ end
135
+
94
136
  ##
95
137
  # Create a fully-qualified Group resource string.
96
138
  #
@@ -110,6 +152,63 @@ module Google
110
152
  "projects/#{project}/locations/#{location}/groups/#{group}"
111
153
  end
112
154
 
155
+ ##
156
+ # Create a fully-qualified Image resource string.
157
+ #
158
+ # The resource will be in the following format:
159
+ #
160
+ # `projects/{project}/global/images/{image}`
161
+ #
162
+ # @param project [String]
163
+ # @param image [String]
164
+ #
165
+ # @return [::String]
166
+ def image_path project:, image:
167
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
168
+
169
+ "projects/#{project}/global/images/#{image}"
170
+ end
171
+
172
+ ##
173
+ # Create a fully-qualified ImageImport resource string.
174
+ #
175
+ # The resource will be in the following format:
176
+ #
177
+ # `projects/{project}/locations/{location}/imageImports/{job}`
178
+ #
179
+ # @param project [String]
180
+ # @param location [String]
181
+ # @param job [String]
182
+ #
183
+ # @return [::String]
184
+ def image_import_path project:, location:, job:
185
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
186
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
187
+
188
+ "projects/#{project}/locations/#{location}/imageImports/#{job}"
189
+ end
190
+
191
+ ##
192
+ # Create a fully-qualified ImageImportJob resource string.
193
+ #
194
+ # The resource will be in the following format:
195
+ #
196
+ # `projects/{project}/locations/{location}/imageImports/{job}/imageImportJobs/{result}`
197
+ #
198
+ # @param project [String]
199
+ # @param location [String]
200
+ # @param job [String]
201
+ # @param result [String]
202
+ #
203
+ # @return [::String]
204
+ def image_import_job_path project:, location:, job:, result:
205
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
206
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
207
+ raise ::ArgumentError, "job cannot contain /" if job.to_s.include? "/"
208
+
209
+ "projects/#{project}/locations/#{location}/imageImports/#{job}/imageImportJobs/#{result}"
210
+ end
211
+
113
212
  ##
114
213
  # Create a fully-qualified Location resource string.
115
214
  #
@@ -171,6 +270,23 @@ module Google
171
270
  "projects/#{project}/locations/#{location}/sources/#{source}/migratingVms/#{migrating_vm}/replicationCycles/#{replication_cycle}"
172
271
  end
173
272
 
273
+ ##
274
+ # Create a fully-qualified ServiceAccount resource string.
275
+ #
276
+ # The resource will be in the following format:
277
+ #
278
+ # `projects/{project}/serviceAccounts/{service_account}`
279
+ #
280
+ # @param project [String]
281
+ # @param service_account [String]
282
+ #
283
+ # @return [::String]
284
+ def service_account_path project:, service_account:
285
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
286
+
287
+ "projects/#{project}/serviceAccounts/#{service_account}"
288
+ end
289
+
174
290
  ##
175
291
  # Create a fully-qualified Source resource string.
176
292
  #