google-apis-migrationcenter_v1alpha1 0.1.0 → 0.2.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/migrationcenter_v1alpha1/classes.rb +1172 -42
- data/lib/google/apis/migrationcenter_v1alpha1/gem_version.rb +2 -2
- data/lib/google/apis/migrationcenter_v1alpha1/representations.rb +566 -0
- data/lib/google/apis/migrationcenter_v1alpha1/service.rb +855 -125
- metadata +3 -3
@@ -79,6 +79,36 @@ module Google
|
|
79
79
|
execute_or_queue_command(command, &block)
|
80
80
|
end
|
81
81
|
|
82
|
+
# Gets the details of regional settings.
|
83
|
+
# @param [String] name
|
84
|
+
# Required. Name of the resource.
|
85
|
+
# @param [String] fields
|
86
|
+
# Selector specifying which fields to include in a partial response.
|
87
|
+
# @param [String] quota_user
|
88
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
89
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
90
|
+
# @param [Google::Apis::RequestOptions] options
|
91
|
+
# Request-specific options
|
92
|
+
#
|
93
|
+
# @yield [result, err] Result & error if block supplied
|
94
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Settings] parsed result object
|
95
|
+
# @yieldparam err [StandardError] error object if request failed
|
96
|
+
#
|
97
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Settings]
|
98
|
+
#
|
99
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
100
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
101
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
102
|
+
def get_project_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
103
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
104
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Settings::Representation
|
105
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Settings
|
106
|
+
command.params['name'] = name unless name.nil?
|
107
|
+
command.query['fields'] = fields unless fields.nil?
|
108
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
109
|
+
execute_or_queue_command(command, &block)
|
110
|
+
end
|
111
|
+
|
82
112
|
# Lists information about the supported locations for this service.
|
83
113
|
# @param [String] name
|
84
114
|
# The resource that owns the locations collection, if applicable.
|
@@ -122,6 +152,58 @@ module Google
|
|
122
152
|
execute_or_queue_command(command, &block)
|
123
153
|
end
|
124
154
|
|
155
|
+
# Updates the regional-level project settings.
|
156
|
+
# @param [String] name
|
157
|
+
# Output only. The name of the resource.
|
158
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::Settings] settings_object
|
159
|
+
# @param [String] request_id
|
160
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
161
|
+
# request ID so that if you must retry your request, the server will know to
|
162
|
+
# ignore the request if it has already been completed. The server will guarantee
|
163
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
164
|
+
# situation where you make an initial request and the request times out. If you
|
165
|
+
# make the request again with the same request ID, the server can check if
|
166
|
+
# original operation with the same request ID was received, and if so, will
|
167
|
+
# ignore the second request. This prevents clients from accidentally creating
|
168
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
169
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
170
|
+
# @param [String] update_mask
|
171
|
+
# Required. Field mask is used to specify the fields to be overwritten in the `
|
172
|
+
# Settings` resource by the update. The values specified in the `update_mask`
|
173
|
+
# field are relative to the resource, not the full request. A field will be
|
174
|
+
# overwritten if it is in the mask. A single * value in the mask lets you to
|
175
|
+
# overwrite all fields.
|
176
|
+
# @param [String] fields
|
177
|
+
# Selector specifying which fields to include in a partial response.
|
178
|
+
# @param [String] quota_user
|
179
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
180
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
181
|
+
# @param [Google::Apis::RequestOptions] options
|
182
|
+
# Request-specific options
|
183
|
+
#
|
184
|
+
# @yield [result, err] Result & error if block supplied
|
185
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
186
|
+
# @yieldparam err [StandardError] error object if request failed
|
187
|
+
#
|
188
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
189
|
+
#
|
190
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
191
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
192
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
193
|
+
def update_project_location_settings(name, settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
194
|
+
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
195
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::Settings::Representation
|
196
|
+
command.request_object = settings_object
|
197
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
198
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
199
|
+
command.params['name'] = name unless name.nil?
|
200
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
201
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
202
|
+
command.query['fields'] = fields unless fields.nil?
|
203
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
204
|
+
execute_or_queue_command(command, &block)
|
205
|
+
end
|
206
|
+
|
125
207
|
# Aggregates the requested fields based on provided function.
|
126
208
|
# @param [String] parent
|
127
209
|
# Required. Parent value for `AggregateAssetsValuesRequest`.
|
@@ -155,10 +237,10 @@ module Google
|
|
155
237
|
execute_or_queue_command(command, &block)
|
156
238
|
end
|
157
239
|
|
158
|
-
#
|
240
|
+
# Deletes list of Assets.
|
159
241
|
# @param [String] parent
|
160
|
-
# Required. Parent value for batch asset
|
161
|
-
# @param [Google::Apis::MigrationcenterV1alpha1::
|
242
|
+
# Required. Parent value for batch asset delete.
|
243
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::BatchDeleteAssetsRequest] batch_delete_assets_request_object
|
162
244
|
# @param [String] fields
|
163
245
|
# Selector specifying which fields to include in a partial response.
|
164
246
|
# @param [String] quota_user
|
@@ -168,43 +250,30 @@ module Google
|
|
168
250
|
# Request-specific options
|
169
251
|
#
|
170
252
|
# @yield [result, err] Result & error if block supplied
|
171
|
-
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::
|
253
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Empty] parsed result object
|
172
254
|
# @yieldparam err [StandardError] error object if request failed
|
173
255
|
#
|
174
|
-
# @return [Google::Apis::MigrationcenterV1alpha1::
|
256
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Empty]
|
175
257
|
#
|
176
258
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
177
259
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
178
260
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
179
|
-
def
|
180
|
-
command = make_simple_command(:post, 'v1alpha1/{+parent}/assets:
|
181
|
-
command.request_representation = Google::Apis::MigrationcenterV1alpha1::
|
182
|
-
command.request_object =
|
183
|
-
command.response_representation = Google::Apis::MigrationcenterV1alpha1::
|
184
|
-
command.response_class = Google::Apis::MigrationcenterV1alpha1::
|
261
|
+
def batch_delete_assets(parent, batch_delete_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
262
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/assets:batchDelete', options)
|
263
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::BatchDeleteAssetsRequest::Representation
|
264
|
+
command.request_object = batch_delete_assets_request_object
|
265
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Empty::Representation
|
266
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Empty
|
185
267
|
command.params['parent'] = parent unless parent.nil?
|
186
268
|
command.query['fields'] = fields unless fields.nil?
|
187
269
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
188
270
|
execute_or_queue_command(command, &block)
|
189
271
|
end
|
190
272
|
|
191
|
-
#
|
192
|
-
# ReportAssetFrames instead.
|
273
|
+
# Updates the parameters of a list of assets.
|
193
274
|
# @param [String] parent
|
194
|
-
# Required.
|
195
|
-
# @param [Google::Apis::MigrationcenterV1alpha1::
|
196
|
-
# @param [String] asset_id
|
197
|
-
# @param [String] request_id
|
198
|
-
# Optional. An optional request ID to identify requests. Specify a unique
|
199
|
-
# request ID so that if you must retry your request, the server will know to
|
200
|
-
# ignore the request if it has already been completed. The server will guarantee
|
201
|
-
# that for at least 60 minutes since the first request. For example, consider a
|
202
|
-
# situation where you make an initial request and the request times out. If you
|
203
|
-
# make the request again with the same request ID, the server can check if
|
204
|
-
# original operation with the same request ID was received, and if so, will
|
205
|
-
# ignore the second request. This prevents clients from accidentally creating
|
206
|
-
# duplicate commitments. The request ID must be a valid UUID with the exception
|
207
|
-
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
275
|
+
# Required. Parent value for batch asset update.
|
276
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::BatchUpdateAssetsRequest] batch_update_assets_request_object
|
208
277
|
# @param [String] fields
|
209
278
|
# Selector specifying which fields to include in a partial response.
|
210
279
|
# @param [String] quota_user
|
@@ -214,29 +283,27 @@ module Google
|
|
214
283
|
# Request-specific options
|
215
284
|
#
|
216
285
|
# @yield [result, err] Result & error if block supplied
|
217
|
-
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::
|
286
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::BatchUpdateAssetsResponse] parsed result object
|
218
287
|
# @yieldparam err [StandardError] error object if request failed
|
219
288
|
#
|
220
|
-
# @return [Google::Apis::MigrationcenterV1alpha1::
|
289
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::BatchUpdateAssetsResponse]
|
221
290
|
#
|
222
291
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
223
292
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
224
293
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
225
|
-
def
|
226
|
-
command = make_simple_command(:post, 'v1alpha1/{+parent}/assets', options)
|
227
|
-
command.request_representation = Google::Apis::MigrationcenterV1alpha1::
|
228
|
-
command.request_object =
|
229
|
-
command.response_representation = Google::Apis::MigrationcenterV1alpha1::
|
230
|
-
command.response_class = Google::Apis::MigrationcenterV1alpha1::
|
294
|
+
def batch_update_assets(parent, batch_update_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
295
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/assets:batchUpdate', options)
|
296
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::BatchUpdateAssetsRequest::Representation
|
297
|
+
command.request_object = batch_update_assets_request_object
|
298
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::BatchUpdateAssetsResponse::Representation
|
299
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::BatchUpdateAssetsResponse
|
231
300
|
command.params['parent'] = parent unless parent.nil?
|
232
|
-
command.query['assetId'] = asset_id unless asset_id.nil?
|
233
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
234
301
|
command.query['fields'] = fields unless fields.nil?
|
235
302
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
236
303
|
execute_or_queue_command(command, &block)
|
237
304
|
end
|
238
305
|
|
239
|
-
# Deletes an asset.
|
306
|
+
# Deletes an asset. Deprecated: Please use BatchDeleteAssets API instead.
|
240
307
|
# @param [String] name
|
241
308
|
# Required. Name of the resource.
|
242
309
|
# @param [String] request_id
|
@@ -357,7 +424,8 @@ module Google
|
|
357
424
|
execute_or_queue_command(command, &block)
|
358
425
|
end
|
359
426
|
|
360
|
-
# Updates the parameters of an asset.
|
427
|
+
# Updates the parameters of an asset. Deprecated: Please use BatchUpdateAssets
|
428
|
+
# API instead.
|
361
429
|
# @param [String] name
|
362
430
|
# Output only. The full name of the asset.
|
363
431
|
# @param [Google::Apis::MigrationcenterV1alpha1::Asset] asset_object
|
@@ -445,12 +513,49 @@ module Google
|
|
445
513
|
execute_or_queue_command(command, &block)
|
446
514
|
end
|
447
515
|
|
448
|
-
#
|
516
|
+
# Adds assets to a group.
|
517
|
+
# @param [String] group
|
518
|
+
# Required. Group reference.
|
519
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::AddAssetsToGroupRequest] add_assets_to_group_request_object
|
520
|
+
# @param [String] fields
|
521
|
+
# Selector specifying which fields to include in a partial response.
|
522
|
+
# @param [String] quota_user
|
523
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
524
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
525
|
+
# @param [Google::Apis::RequestOptions] options
|
526
|
+
# Request-specific options
|
527
|
+
#
|
528
|
+
# @yield [result, err] Result & error if block supplied
|
529
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
530
|
+
# @yieldparam err [StandardError] error object if request failed
|
531
|
+
#
|
532
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
533
|
+
#
|
534
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
535
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
536
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
537
|
+
def add_assets_to_group(group, add_assets_to_group_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
538
|
+
command = make_simple_command(:post, 'v1alpha1/{+group}:addAssets', options)
|
539
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::AddAssetsToGroupRequest::Representation
|
540
|
+
command.request_object = add_assets_to_group_request_object
|
541
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
542
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
543
|
+
command.params['group'] = group unless group.nil?
|
544
|
+
command.query['fields'] = fields unless fields.nil?
|
545
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
546
|
+
execute_or_queue_command(command, &block)
|
547
|
+
end
|
548
|
+
|
549
|
+
# Creates a new group in a given project and location.
|
449
550
|
# @param [String] parent
|
450
551
|
# Required. Value for parent.
|
451
|
-
# @param [Google::Apis::MigrationcenterV1alpha1::
|
452
|
-
# @param [String]
|
453
|
-
# Required. ID
|
552
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::Group] group_object
|
553
|
+
# @param [String] group_id
|
554
|
+
# Required. User specified ID for the group. It will become the last component
|
555
|
+
# of the group name. The ID must be unique within the project, must conform with
|
556
|
+
# RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63
|
557
|
+
# characters. The ID must match the regular expression: `[a-z]([a-z0-9-]`0,61`[a-
|
558
|
+
# z0-9])?`.
|
454
559
|
# @param [String] request_id
|
455
560
|
# Optional. An optional request ID to identify requests. Specify a unique
|
456
561
|
# request ID so that if you must retry your request, the server will know to
|
@@ -479,23 +584,23 @@ module Google
|
|
479
584
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
480
585
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
481
586
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
482
|
-
def
|
483
|
-
command = make_simple_command(:post, 'v1alpha1/{+parent}/
|
484
|
-
command.request_representation = Google::Apis::MigrationcenterV1alpha1::
|
485
|
-
command.request_object =
|
587
|
+
def create_project_location_group(parent, group_object = nil, group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
588
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/groups', options)
|
589
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::Group::Representation
|
590
|
+
command.request_object = group_object
|
486
591
|
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
487
592
|
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
488
593
|
command.params['parent'] = parent unless parent.nil?
|
489
|
-
command.query['
|
594
|
+
command.query['groupId'] = group_id unless group_id.nil?
|
490
595
|
command.query['requestId'] = request_id unless request_id.nil?
|
491
596
|
command.query['fields'] = fields unless fields.nil?
|
492
597
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
493
598
|
execute_or_queue_command(command, &block)
|
494
599
|
end
|
495
600
|
|
496
|
-
# Deletes
|
601
|
+
# Deletes a group.
|
497
602
|
# @param [String] name
|
498
|
-
# Required. Name of the resource.
|
603
|
+
# Required. Name of the group resource.
|
499
604
|
# @param [String] request_id
|
500
605
|
# Optional. An optional request ID to identify requests. Specify a unique
|
501
606
|
# request ID so that if you must retry your request, the server will know to
|
@@ -524,7 +629,7 @@ module Google
|
|
524
629
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
525
630
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
526
631
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
527
|
-
def
|
632
|
+
def delete_project_location_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
528
633
|
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
529
634
|
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
530
635
|
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
@@ -535,11 +640,9 @@ module Google
|
|
535
640
|
execute_or_queue_command(command, &block)
|
536
641
|
end
|
537
642
|
|
538
|
-
# Gets the details of
|
643
|
+
# Gets the details of a group.
|
539
644
|
# @param [String] name
|
540
645
|
# Required. Name of the resource.
|
541
|
-
# @param [String] view
|
542
|
-
# Optional. The level of details of the import job. Default value is FULL.
|
543
646
|
# @param [String] fields
|
544
647
|
# Selector specifying which fields to include in a partial response.
|
545
648
|
# @param [String] quota_user
|
@@ -549,28 +652,27 @@ module Google
|
|
549
652
|
# Request-specific options
|
550
653
|
#
|
551
654
|
# @yield [result, err] Result & error if block supplied
|
552
|
-
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::
|
655
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Group] parsed result object
|
553
656
|
# @yieldparam err [StandardError] error object if request failed
|
554
657
|
#
|
555
|
-
# @return [Google::Apis::MigrationcenterV1alpha1::
|
658
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Group]
|
556
659
|
#
|
557
660
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
558
661
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
559
662
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
560
|
-
def
|
663
|
+
def get_project_location_group(name, fields: nil, quota_user: nil, options: nil, &block)
|
561
664
|
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
562
|
-
command.response_representation = Google::Apis::MigrationcenterV1alpha1::
|
563
|
-
command.response_class = Google::Apis::MigrationcenterV1alpha1::
|
665
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Group::Representation
|
666
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Group
|
564
667
|
command.params['name'] = name unless name.nil?
|
565
|
-
command.query['view'] = view unless view.nil?
|
566
668
|
command.query['fields'] = fields unless fields.nil?
|
567
669
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
568
670
|
execute_or_queue_command(command, &block)
|
569
671
|
end
|
570
672
|
|
571
|
-
# Lists all
|
673
|
+
# Lists all groups in a given project and location.
|
572
674
|
# @param [String] parent
|
573
|
-
# Required. Parent value for `
|
675
|
+
# Required. Parent value for `ListGroupsRequest`.
|
574
676
|
# @param [String] filter
|
575
677
|
# Filtering results.
|
576
678
|
# @param [String] order_by
|
@@ -580,8 +682,6 @@ module Google
|
|
580
682
|
# unspecified, server will pick an appropriate default.
|
581
683
|
# @param [String] page_token
|
582
684
|
# A token identifying a page of results the server should return.
|
583
|
-
# @param [String] view
|
584
|
-
# Optional. The level of details of each import job. Default value is BASIC.
|
585
685
|
# @param [String] fields
|
586
686
|
# Selector specifying which fields to include in a partial response.
|
587
687
|
# @param [String] quota_user
|
@@ -591,33 +691,32 @@ module Google
|
|
591
691
|
# Request-specific options
|
592
692
|
#
|
593
693
|
# @yield [result, err] Result & error if block supplied
|
594
|
-
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::
|
694
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ListGroupsResponse] parsed result object
|
595
695
|
# @yieldparam err [StandardError] error object if request failed
|
596
696
|
#
|
597
|
-
# @return [Google::Apis::MigrationcenterV1alpha1::
|
697
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::ListGroupsResponse]
|
598
698
|
#
|
599
699
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
600
700
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
601
701
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
602
|
-
def
|
603
|
-
command = make_simple_command(:get, 'v1alpha1/{+parent}/
|
604
|
-
command.response_representation = Google::Apis::MigrationcenterV1alpha1::
|
605
|
-
command.response_class = Google::Apis::MigrationcenterV1alpha1::
|
702
|
+
def list_project_location_groups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
703
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/groups', options)
|
704
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListGroupsResponse::Representation
|
705
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::ListGroupsResponse
|
606
706
|
command.params['parent'] = parent unless parent.nil?
|
607
707
|
command.query['filter'] = filter unless filter.nil?
|
608
708
|
command.query['orderBy'] = order_by unless order_by.nil?
|
609
709
|
command.query['pageSize'] = page_size unless page_size.nil?
|
610
710
|
command.query['pageToken'] = page_token unless page_token.nil?
|
611
|
-
command.query['view'] = view unless view.nil?
|
612
711
|
command.query['fields'] = fields unless fields.nil?
|
613
712
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
614
713
|
execute_or_queue_command(command, &block)
|
615
714
|
end
|
616
715
|
|
617
|
-
# Updates
|
716
|
+
# Updates the parameters of a group.
|
618
717
|
# @param [String] name
|
619
|
-
# Output only. The
|
620
|
-
# @param [Google::Apis::MigrationcenterV1alpha1::
|
718
|
+
# Output only. The name of the group.
|
719
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::Group] group_object
|
621
720
|
# @param [String] request_id
|
622
721
|
# Optional. An optional request ID to identify requests. Specify a unique
|
623
722
|
# request ID so that if you must retry your request, the server will know to
|
@@ -631,10 +730,10 @@ module Google
|
|
631
730
|
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
632
731
|
# @param [String] update_mask
|
633
732
|
# Required. Field mask is used to specify the fields to be overwritten in the `
|
634
|
-
#
|
635
|
-
#
|
636
|
-
#
|
637
|
-
#
|
733
|
+
# Group` resource by the update. The values specified in the `update_mask` are
|
734
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
735
|
+
# it is in the mask. A single * value in the mask lets you to overwrite all
|
736
|
+
# fields.
|
638
737
|
# @param [String] fields
|
639
738
|
# Selector specifying which fields to include in a partial response.
|
640
739
|
# @param [String] quota_user
|
@@ -652,10 +751,10 @@ module Google
|
|
652
751
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
653
752
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
654
753
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
655
|
-
def
|
754
|
+
def patch_project_location_group(name, group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
656
755
|
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
657
|
-
command.request_representation = Google::Apis::MigrationcenterV1alpha1::
|
658
|
-
command.request_object =
|
756
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::Group::Representation
|
757
|
+
command.request_object = group_object
|
659
758
|
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
660
759
|
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
661
760
|
command.params['name'] = name unless name.nil?
|
@@ -666,10 +765,10 @@ module Google
|
|
666
765
|
execute_or_queue_command(command, &block)
|
667
766
|
end
|
668
767
|
|
669
|
-
#
|
670
|
-
# @param [String]
|
671
|
-
# Required.
|
672
|
-
# @param [Google::Apis::MigrationcenterV1alpha1::
|
768
|
+
# Removes assets from a group.
|
769
|
+
# @param [String] group
|
770
|
+
# Required. Group reference.
|
771
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::RemoveAssetsFromGroupRequest] remove_assets_from_group_request_object
|
673
772
|
# @param [String] fields
|
674
773
|
# Selector specifying which fields to include in a partial response.
|
675
774
|
# @param [String] quota_user
|
@@ -687,22 +786,35 @@ module Google
|
|
687
786
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
688
787
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
689
788
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
690
|
-
def
|
691
|
-
command = make_simple_command(:post, 'v1alpha1/{+
|
692
|
-
command.request_representation = Google::Apis::MigrationcenterV1alpha1::
|
693
|
-
command.request_object =
|
789
|
+
def remove_assets_from_group(group, remove_assets_from_group_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
790
|
+
command = make_simple_command(:post, 'v1alpha1/{+group}:removeAssets', options)
|
791
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::RemoveAssetsFromGroupRequest::Representation
|
792
|
+
command.request_object = remove_assets_from_group_request_object
|
694
793
|
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
695
794
|
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
696
|
-
command.params['
|
795
|
+
command.params['group'] = group unless group.nil?
|
697
796
|
command.query['fields'] = fields unless fields.nil?
|
698
797
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
699
798
|
execute_or_queue_command(command, &block)
|
700
799
|
end
|
701
800
|
|
702
|
-
#
|
703
|
-
# @param [String]
|
704
|
-
# Required.
|
705
|
-
# @param [Google::Apis::MigrationcenterV1alpha1::
|
801
|
+
# Creates an import job.
|
802
|
+
# @param [String] parent
|
803
|
+
# Required. Value for parent.
|
804
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::ImportJob] import_job_object
|
805
|
+
# @param [String] import_job_id
|
806
|
+
# Required. ID of the import job.
|
807
|
+
# @param [String] request_id
|
808
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
809
|
+
# request ID so that if you must retry your request, the server will know to
|
810
|
+
# ignore the request if it has already been completed. The server will guarantee
|
811
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
812
|
+
# situation where you make an initial request and the request times out. If you
|
813
|
+
# make the request again with the same request ID, the server can check if
|
814
|
+
# original operation with the same request ID was received, and if so, will
|
815
|
+
# ignore the second request. This prevents clients from accidentally creating
|
816
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
817
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
706
818
|
# @param [String] fields
|
707
819
|
# Selector specifying which fields to include in a partial response.
|
708
820
|
# @param [String] quota_user
|
@@ -720,29 +832,37 @@ module Google
|
|
720
832
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
721
833
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
722
834
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
723
|
-
def
|
724
|
-
command = make_simple_command(:post, 'v1alpha1/{+
|
725
|
-
command.request_representation = Google::Apis::MigrationcenterV1alpha1::
|
726
|
-
command.request_object =
|
835
|
+
def create_project_location_import_job(parent, import_job_object = nil, import_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
836
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/importJobs', options)
|
837
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::ImportJob::Representation
|
838
|
+
command.request_object = import_job_object
|
727
839
|
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
728
840
|
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
729
|
-
command.params['
|
841
|
+
command.params['parent'] = parent unless parent.nil?
|
842
|
+
command.query['importJobId'] = import_job_id unless import_job_id.nil?
|
843
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
730
844
|
command.query['fields'] = fields unless fields.nil?
|
731
845
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
732
846
|
execute_or_queue_command(command, &block)
|
733
847
|
end
|
734
848
|
|
735
|
-
#
|
736
|
-
# a best effort to cancel the operation, but success is not guaranteed. If the
|
737
|
-
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
738
|
-
# Clients can use Operations.GetOperation or other methods to check whether the
|
739
|
-
# cancellation succeeded or whether the operation completed despite cancellation.
|
740
|
-
# On successful cancellation, the operation is not deleted; instead, it becomes
|
741
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
742
|
-
# corresponding to `Code.CANCELLED`.
|
849
|
+
# Deletes an import job.
|
743
850
|
# @param [String] name
|
744
|
-
#
|
745
|
-
# @param [
|
851
|
+
# Required. Name of the resource.
|
852
|
+
# @param [Boolean] force
|
853
|
+
# Optional. If set to `true`, any `ImportDataFiles` of this job will also be
|
854
|
+
# deleted If set to `false`, the request only works if the job has no data files.
|
855
|
+
# @param [String] request_id
|
856
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
857
|
+
# request ID so that if you must retry your request, the server will know to
|
858
|
+
# ignore the request if it has already been completed. The server will guarantee
|
859
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
860
|
+
# situation where you make an initial request and the request times out. If you
|
861
|
+
# make the request again with the same request ID, the server can check if
|
862
|
+
# original operation with the same request ID was received, and if so, will
|
863
|
+
# ignore the second request. This prevents clients from accidentally creating
|
864
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
865
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
746
866
|
# @param [String] fields
|
747
867
|
# Selector specifying which fields to include in a partial response.
|
748
868
|
# @param [String] quota_user
|
@@ -752,21 +872,425 @@ module Google
|
|
752
872
|
# Request-specific options
|
753
873
|
#
|
754
874
|
# @yield [result, err] Result & error if block supplied
|
755
|
-
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::
|
875
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
756
876
|
# @yieldparam err [StandardError] error object if request failed
|
757
877
|
#
|
758
|
-
# @return [Google::Apis::MigrationcenterV1alpha1::
|
878
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
759
879
|
#
|
760
880
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
761
881
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
762
882
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
763
|
-
def
|
764
|
-
command = make_simple_command(:
|
765
|
-
command.
|
766
|
-
command.
|
767
|
-
command.
|
768
|
-
command.
|
769
|
-
command.
|
883
|
+
def delete_project_location_import_job(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
884
|
+
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
885
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
886
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
887
|
+
command.params['name'] = name unless name.nil?
|
888
|
+
command.query['force'] = force unless force.nil?
|
889
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
890
|
+
command.query['fields'] = fields unless fields.nil?
|
891
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
892
|
+
execute_or_queue_command(command, &block)
|
893
|
+
end
|
894
|
+
|
895
|
+
# Gets the details of an import job.
|
896
|
+
# @param [String] name
|
897
|
+
# Required. Name of the resource.
|
898
|
+
# @param [String] view
|
899
|
+
# Optional. The level of details of the import job. Default value is FULL.
|
900
|
+
# @param [String] fields
|
901
|
+
# Selector specifying which fields to include in a partial response.
|
902
|
+
# @param [String] quota_user
|
903
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
904
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
905
|
+
# @param [Google::Apis::RequestOptions] options
|
906
|
+
# Request-specific options
|
907
|
+
#
|
908
|
+
# @yield [result, err] Result & error if block supplied
|
909
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ImportJob] parsed result object
|
910
|
+
# @yieldparam err [StandardError] error object if request failed
|
911
|
+
#
|
912
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::ImportJob]
|
913
|
+
#
|
914
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
915
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
916
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
917
|
+
def get_project_location_import_job(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
918
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
919
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::ImportJob::Representation
|
920
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::ImportJob
|
921
|
+
command.params['name'] = name unless name.nil?
|
922
|
+
command.query['view'] = view unless view.nil?
|
923
|
+
command.query['fields'] = fields unless fields.nil?
|
924
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
925
|
+
execute_or_queue_command(command, &block)
|
926
|
+
end
|
927
|
+
|
928
|
+
# Lists all import jobs.
|
929
|
+
# @param [String] parent
|
930
|
+
# Required. Parent value for `ListImportJobsRequest`.
|
931
|
+
# @param [String] filter
|
932
|
+
# Filtering results.
|
933
|
+
# @param [String] order_by
|
934
|
+
# Field to sort by. See https://google.aip.dev/132#ordering for more details.
|
935
|
+
# @param [Fixnum] page_size
|
936
|
+
# Requested page size. Server may return fewer items than requested. If
|
937
|
+
# unspecified, server will pick an appropriate default.
|
938
|
+
# @param [String] page_token
|
939
|
+
# A token identifying a page of results the server should return.
|
940
|
+
# @param [String] view
|
941
|
+
# Optional. The level of details of each import job. Default value is BASIC.
|
942
|
+
# @param [String] fields
|
943
|
+
# Selector specifying which fields to include in a partial response.
|
944
|
+
# @param [String] quota_user
|
945
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
946
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
947
|
+
# @param [Google::Apis::RequestOptions] options
|
948
|
+
# Request-specific options
|
949
|
+
#
|
950
|
+
# @yield [result, err] Result & error if block supplied
|
951
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ListImportJobsResponse] parsed result object
|
952
|
+
# @yieldparam err [StandardError] error object if request failed
|
953
|
+
#
|
954
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::ListImportJobsResponse]
|
955
|
+
#
|
956
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
957
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
958
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
959
|
+
def list_project_location_import_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
960
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/importJobs', options)
|
961
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListImportJobsResponse::Representation
|
962
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::ListImportJobsResponse
|
963
|
+
command.params['parent'] = parent unless parent.nil?
|
964
|
+
command.query['filter'] = filter unless filter.nil?
|
965
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
966
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
967
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
968
|
+
command.query['view'] = view unless view.nil?
|
969
|
+
command.query['fields'] = fields unless fields.nil?
|
970
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
971
|
+
execute_or_queue_command(command, &block)
|
972
|
+
end
|
973
|
+
|
974
|
+
# Updates an import job.
|
975
|
+
# @param [String] name
|
976
|
+
# Output only. The full name of the import job.
|
977
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::ImportJob] import_job_object
|
978
|
+
# @param [String] request_id
|
979
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
980
|
+
# request ID so that if you must retry your request, the server will know to
|
981
|
+
# ignore the request if it has already been completed. The server will guarantee
|
982
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
983
|
+
# situation where you make an initial request and the request times out. If you
|
984
|
+
# make the request again with the same request ID, the server can check if
|
985
|
+
# original operation with the same request ID was received, and if so, will
|
986
|
+
# ignore the second request. This prevents clients from accidentally creating
|
987
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
988
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
989
|
+
# @param [String] update_mask
|
990
|
+
# Required. Field mask is used to specify the fields to be overwritten in the `
|
991
|
+
# Asset` resource by the update. The values specified in the `update_mask` field
|
992
|
+
# are relative to the resource, not the full request. A field will be
|
993
|
+
# overwritten if it is in the mask. A single * value in the mask lets you to
|
994
|
+
# overwrite all fields.
|
995
|
+
# @param [String] fields
|
996
|
+
# Selector specifying which fields to include in a partial response.
|
997
|
+
# @param [String] quota_user
|
998
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
999
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1000
|
+
# @param [Google::Apis::RequestOptions] options
|
1001
|
+
# Request-specific options
|
1002
|
+
#
|
1003
|
+
# @yield [result, err] Result & error if block supplied
|
1004
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
1005
|
+
# @yieldparam err [StandardError] error object if request failed
|
1006
|
+
#
|
1007
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
1008
|
+
#
|
1009
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1010
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1011
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1012
|
+
def patch_project_location_import_job(name, import_job_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1013
|
+
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
1014
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::ImportJob::Representation
|
1015
|
+
command.request_object = import_job_object
|
1016
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
1017
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
1018
|
+
command.params['name'] = name unless name.nil?
|
1019
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1020
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1021
|
+
command.query['fields'] = fields unless fields.nil?
|
1022
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1023
|
+
execute_or_queue_command(command, &block)
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
# Runs an import job.
|
1027
|
+
# @param [String] name
|
1028
|
+
# Required. The name of the import job to run.
|
1029
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::RunImportJobRequest] run_import_job_request_object
|
1030
|
+
# @param [String] fields
|
1031
|
+
# Selector specifying which fields to include in a partial response.
|
1032
|
+
# @param [String] quota_user
|
1033
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1034
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1035
|
+
# @param [Google::Apis::RequestOptions] options
|
1036
|
+
# Request-specific options
|
1037
|
+
#
|
1038
|
+
# @yield [result, err] Result & error if block supplied
|
1039
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
1040
|
+
# @yieldparam err [StandardError] error object if request failed
|
1041
|
+
#
|
1042
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
1043
|
+
#
|
1044
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1045
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1046
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1047
|
+
def run_import_job(name, run_import_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1048
|
+
command = make_simple_command(:post, 'v1alpha1/{+name}:run', options)
|
1049
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::RunImportJobRequest::Representation
|
1050
|
+
command.request_object = run_import_job_request_object
|
1051
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
1052
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
1053
|
+
command.params['name'] = name unless name.nil?
|
1054
|
+
command.query['fields'] = fields unless fields.nil?
|
1055
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1056
|
+
execute_or_queue_command(command, &block)
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
# Validates an import job.
|
1060
|
+
# @param [String] name
|
1061
|
+
# Required. The name of the import job to validate.
|
1062
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::ValidateImportJobRequest] validate_import_job_request_object
|
1063
|
+
# @param [String] fields
|
1064
|
+
# Selector specifying which fields to include in a partial response.
|
1065
|
+
# @param [String] quota_user
|
1066
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1067
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1068
|
+
# @param [Google::Apis::RequestOptions] options
|
1069
|
+
# Request-specific options
|
1070
|
+
#
|
1071
|
+
# @yield [result, err] Result & error if block supplied
|
1072
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
1073
|
+
# @yieldparam err [StandardError] error object if request failed
|
1074
|
+
#
|
1075
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
1076
|
+
#
|
1077
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1078
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1079
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1080
|
+
def validate_import_job(name, validate_import_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1081
|
+
command = make_simple_command(:post, 'v1alpha1/{+name}:validate', options)
|
1082
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::ValidateImportJobRequest::Representation
|
1083
|
+
command.request_object = validate_import_job_request_object
|
1084
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
1085
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
1086
|
+
command.params['name'] = name unless name.nil?
|
1087
|
+
command.query['fields'] = fields unless fields.nil?
|
1088
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1089
|
+
execute_or_queue_command(command, &block)
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
# Creates an import data file.
|
1093
|
+
# @param [String] parent
|
1094
|
+
# Required. Name of the parent of the ImportDataFile.
|
1095
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::ImportDataFile] import_data_file_object
|
1096
|
+
# @param [String] import_data_file_id
|
1097
|
+
# Required. The ID of the new data file.
|
1098
|
+
# @param [String] request_id
|
1099
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1100
|
+
# request ID so that if you must retry your request, the server will know to
|
1101
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1102
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
1103
|
+
# situation where you make an initial request and the request times out. If you
|
1104
|
+
# make the request again with the same request ID, the server can check if
|
1105
|
+
# original operation with the same request ID was received, and if so, will
|
1106
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1107
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1108
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1109
|
+
# @param [String] fields
|
1110
|
+
# Selector specifying which fields to include in a partial response.
|
1111
|
+
# @param [String] quota_user
|
1112
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1113
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1114
|
+
# @param [Google::Apis::RequestOptions] options
|
1115
|
+
# Request-specific options
|
1116
|
+
#
|
1117
|
+
# @yield [result, err] Result & error if block supplied
|
1118
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
1119
|
+
# @yieldparam err [StandardError] error object if request failed
|
1120
|
+
#
|
1121
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
1122
|
+
#
|
1123
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1124
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1125
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1126
|
+
def create_project_location_import_job_import_data_file(parent, import_data_file_object = nil, import_data_file_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1127
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/importDataFiles', options)
|
1128
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::ImportDataFile::Representation
|
1129
|
+
command.request_object = import_data_file_object
|
1130
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
1131
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
1132
|
+
command.params['parent'] = parent unless parent.nil?
|
1133
|
+
command.query['importDataFileId'] = import_data_file_id unless import_data_file_id.nil?
|
1134
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1135
|
+
command.query['fields'] = fields unless fields.nil?
|
1136
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1137
|
+
execute_or_queue_command(command, &block)
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
# Delete an import data file.
|
1141
|
+
# @param [String] name
|
1142
|
+
# Required. Name of the ImportDataFile to delete.
|
1143
|
+
# @param [String] request_id
|
1144
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1145
|
+
# request ID so that if you must retry your request, the server will know to
|
1146
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1147
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
1148
|
+
# situation where you make an initial request and the request times out. If you
|
1149
|
+
# make the request again with the same request ID, the server can check if
|
1150
|
+
# original operation with the same request ID was received, and if so, will
|
1151
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1152
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1153
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1154
|
+
# @param [String] fields
|
1155
|
+
# Selector specifying which fields to include in a partial response.
|
1156
|
+
# @param [String] quota_user
|
1157
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1158
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1159
|
+
# @param [Google::Apis::RequestOptions] options
|
1160
|
+
# Request-specific options
|
1161
|
+
#
|
1162
|
+
# @yield [result, err] Result & error if block supplied
|
1163
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
1164
|
+
# @yieldparam err [StandardError] error object if request failed
|
1165
|
+
#
|
1166
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
1167
|
+
#
|
1168
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1169
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1170
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1171
|
+
def delete_project_location_import_job_import_data_file(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1172
|
+
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
1173
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
1174
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
1175
|
+
command.params['name'] = name unless name.nil?
|
1176
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1177
|
+
command.query['fields'] = fields unless fields.nil?
|
1178
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1179
|
+
execute_or_queue_command(command, &block)
|
1180
|
+
end
|
1181
|
+
|
1182
|
+
# Gets an import data file.
|
1183
|
+
# @param [String] name
|
1184
|
+
# Required. Name of the ImportDataFile.
|
1185
|
+
# @param [String] fields
|
1186
|
+
# Selector specifying which fields to include in a partial response.
|
1187
|
+
# @param [String] quota_user
|
1188
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1189
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1190
|
+
# @param [Google::Apis::RequestOptions] options
|
1191
|
+
# Request-specific options
|
1192
|
+
#
|
1193
|
+
# @yield [result, err] Result & error if block supplied
|
1194
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ImportDataFile] parsed result object
|
1195
|
+
# @yieldparam err [StandardError] error object if request failed
|
1196
|
+
#
|
1197
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::ImportDataFile]
|
1198
|
+
#
|
1199
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1200
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1201
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1202
|
+
def get_project_location_import_job_import_data_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
1203
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
1204
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::ImportDataFile::Representation
|
1205
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::ImportDataFile
|
1206
|
+
command.params['name'] = name unless name.nil?
|
1207
|
+
command.query['fields'] = fields unless fields.nil?
|
1208
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1209
|
+
execute_or_queue_command(command, &block)
|
1210
|
+
end
|
1211
|
+
|
1212
|
+
# List import data files.
|
1213
|
+
# @param [String] parent
|
1214
|
+
# Required. Name of the parent of the `ImportDataFiles` resource.
|
1215
|
+
# @param [String] filter
|
1216
|
+
# Filtering results.
|
1217
|
+
# @param [String] order_by
|
1218
|
+
# Field to sort by. See https://google.aip.dev/132#ordering for more details.
|
1219
|
+
# @param [Fixnum] page_size
|
1220
|
+
# The maximum number of data files to return. The service may return fewer than
|
1221
|
+
# this value. If unspecified, at most 500 data files will be returned. The
|
1222
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
1223
|
+
# @param [String] page_token
|
1224
|
+
# A page token, received from a previous `ListImportDataFiles` call. Provide
|
1225
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
1226
|
+
# provided to `ListImportDataFiles` must match the call that provided the page
|
1227
|
+
# token.
|
1228
|
+
# @param [String] fields
|
1229
|
+
# Selector specifying which fields to include in a partial response.
|
1230
|
+
# @param [String] quota_user
|
1231
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1232
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1233
|
+
# @param [Google::Apis::RequestOptions] options
|
1234
|
+
# Request-specific options
|
1235
|
+
#
|
1236
|
+
# @yield [result, err] Result & error if block supplied
|
1237
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ListImportDataFilesResponse] parsed result object
|
1238
|
+
# @yieldparam err [StandardError] error object if request failed
|
1239
|
+
#
|
1240
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::ListImportDataFilesResponse]
|
1241
|
+
#
|
1242
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1243
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1244
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1245
|
+
def list_project_location_import_job_import_data_files(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1246
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/importDataFiles', options)
|
1247
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListImportDataFilesResponse::Representation
|
1248
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::ListImportDataFilesResponse
|
1249
|
+
command.params['parent'] = parent unless parent.nil?
|
1250
|
+
command.query['filter'] = filter unless filter.nil?
|
1251
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1252
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1253
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1254
|
+
command.query['fields'] = fields unless fields.nil?
|
1255
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1256
|
+
execute_or_queue_command(command, &block)
|
1257
|
+
end
|
1258
|
+
|
1259
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
1260
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
1261
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
1262
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
1263
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
1264
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
1265
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
1266
|
+
# corresponding to `Code.CANCELLED`.
|
1267
|
+
# @param [String] name
|
1268
|
+
# The name of the operation resource to be cancelled.
|
1269
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::CancelOperationRequest] cancel_operation_request_object
|
1270
|
+
# @param [String] fields
|
1271
|
+
# Selector specifying which fields to include in a partial response.
|
1272
|
+
# @param [String] quota_user
|
1273
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1274
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1275
|
+
# @param [Google::Apis::RequestOptions] options
|
1276
|
+
# Request-specific options
|
1277
|
+
#
|
1278
|
+
# @yield [result, err] Result & error if block supplied
|
1279
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Empty] parsed result object
|
1280
|
+
# @yieldparam err [StandardError] error object if request failed
|
1281
|
+
#
|
1282
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Empty]
|
1283
|
+
#
|
1284
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1285
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1286
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1287
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1288
|
+
command = make_simple_command(:post, 'v1alpha1/{+name}:cancel', options)
|
1289
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::CancelOperationRequest::Representation
|
1290
|
+
command.request_object = cancel_operation_request_object
|
1291
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Empty::Representation
|
1292
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Empty
|
1293
|
+
command.params['name'] = name unless name.nil?
|
770
1294
|
command.query['fields'] = fields unless fields.nil?
|
771
1295
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
772
1296
|
execute_or_queue_command(command, &block)
|
@@ -837,13 +1361,7 @@ module Google
|
|
837
1361
|
end
|
838
1362
|
|
839
1363
|
# Lists operations that match the specified filter in the request. If the server
|
840
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
841
|
-
# binding allows API services to override the binding to use different resource
|
842
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
843
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
844
|
-
# service configuration. For backwards compatibility, the default name includes
|
845
|
-
# the operations collection id, however overriding users must ensure the name
|
846
|
-
# binding is the parent resource, without the operations collection id.
|
1364
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
847
1365
|
# @param [String] name
|
848
1366
|
# The name of the operation's parent resource.
|
849
1367
|
# @param [String] filter
|
@@ -882,6 +1400,218 @@ module Google
|
|
882
1400
|
execute_or_queue_command(command, &block)
|
883
1401
|
end
|
884
1402
|
|
1403
|
+
# Creates a new preference set in a given project and location.
|
1404
|
+
# @param [String] parent
|
1405
|
+
# Required. Value for parent.
|
1406
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::PreferenceSet] preference_set_object
|
1407
|
+
# @param [String] preference_set_id
|
1408
|
+
# @param [String] request_id
|
1409
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1410
|
+
# request ID so that if you must retry your request, the server will know to
|
1411
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1412
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
1413
|
+
# situation where you make an initial request and the request times out. If you
|
1414
|
+
# make the request again with the same request ID, the server can check if
|
1415
|
+
# original operation with the same request ID was received, and if so, will
|
1416
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1417
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1418
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1419
|
+
# @param [String] fields
|
1420
|
+
# Selector specifying which fields to include in a partial response.
|
1421
|
+
# @param [String] quota_user
|
1422
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1423
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1424
|
+
# @param [Google::Apis::RequestOptions] options
|
1425
|
+
# Request-specific options
|
1426
|
+
#
|
1427
|
+
# @yield [result, err] Result & error if block supplied
|
1428
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
1429
|
+
# @yieldparam err [StandardError] error object if request failed
|
1430
|
+
#
|
1431
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
1432
|
+
#
|
1433
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1434
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1435
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1436
|
+
def create_project_location_preference_set(parent, preference_set_object = nil, preference_set_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1437
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/preferenceSets', options)
|
1438
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::PreferenceSet::Representation
|
1439
|
+
command.request_object = preference_set_object
|
1440
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
1441
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
1442
|
+
command.params['parent'] = parent unless parent.nil?
|
1443
|
+
command.query['preferenceSetId'] = preference_set_id unless preference_set_id.nil?
|
1444
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1445
|
+
command.query['fields'] = fields unless fields.nil?
|
1446
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1447
|
+
execute_or_queue_command(command, &block)
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
# Deletes a preference set.
|
1451
|
+
# @param [String] name
|
1452
|
+
# Required. Name of the group resource.
|
1453
|
+
# @param [String] request_id
|
1454
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1455
|
+
# request ID so that if you must retry your request, the server will know to
|
1456
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1457
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
1458
|
+
# situation where you make an initial request and the request times out. If you
|
1459
|
+
# make the request again with the same request ID, the server can check if
|
1460
|
+
# original operation with the same request ID was received, and if so, will
|
1461
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1462
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1463
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1464
|
+
# @param [String] fields
|
1465
|
+
# Selector specifying which fields to include in a partial response.
|
1466
|
+
# @param [String] quota_user
|
1467
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1468
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1469
|
+
# @param [Google::Apis::RequestOptions] options
|
1470
|
+
# Request-specific options
|
1471
|
+
#
|
1472
|
+
# @yield [result, err] Result & error if block supplied
|
1473
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
1474
|
+
# @yieldparam err [StandardError] error object if request failed
|
1475
|
+
#
|
1476
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
1477
|
+
#
|
1478
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1479
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1480
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1481
|
+
def delete_project_location_preference_set(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1482
|
+
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
1483
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
1484
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
1485
|
+
command.params['name'] = name unless name.nil?
|
1486
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1487
|
+
command.query['fields'] = fields unless fields.nil?
|
1488
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1489
|
+
execute_or_queue_command(command, &block)
|
1490
|
+
end
|
1491
|
+
|
1492
|
+
# Gets the details of a preference set.
|
1493
|
+
# @param [String] name
|
1494
|
+
# Required. Name of the resource.
|
1495
|
+
# @param [String] fields
|
1496
|
+
# Selector specifying which fields to include in a partial response.
|
1497
|
+
# @param [String] quota_user
|
1498
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1499
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1500
|
+
# @param [Google::Apis::RequestOptions] options
|
1501
|
+
# Request-specific options
|
1502
|
+
#
|
1503
|
+
# @yield [result, err] Result & error if block supplied
|
1504
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::PreferenceSet] parsed result object
|
1505
|
+
# @yieldparam err [StandardError] error object if request failed
|
1506
|
+
#
|
1507
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::PreferenceSet]
|
1508
|
+
#
|
1509
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1510
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1511
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1512
|
+
def get_project_location_preference_set(name, fields: nil, quota_user: nil, options: nil, &block)
|
1513
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
1514
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::PreferenceSet::Representation
|
1515
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::PreferenceSet
|
1516
|
+
command.params['name'] = name unless name.nil?
|
1517
|
+
command.query['fields'] = fields unless fields.nil?
|
1518
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1519
|
+
execute_or_queue_command(command, &block)
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
# Lists all the preference sets in a given project and location.
|
1523
|
+
# @param [String] parent
|
1524
|
+
# Required. Parent value for `ListPreferenceSetsRequest`.
|
1525
|
+
# @param [String] order_by
|
1526
|
+
# Field to sort by. See https://google.aip.dev/132#ordering for more details.
|
1527
|
+
# @param [Fixnum] page_size
|
1528
|
+
# Requested page size. Server may return fewer items than requested. If
|
1529
|
+
# unspecified, at most 500 preference sets will be returned. The maximum value
|
1530
|
+
# is 1000; values above 1000 will be coerced to 1000.
|
1531
|
+
# @param [String] page_token
|
1532
|
+
# A token identifying a page of results the server should return.
|
1533
|
+
# @param [String] fields
|
1534
|
+
# Selector specifying which fields to include in a partial response.
|
1535
|
+
# @param [String] quota_user
|
1536
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1537
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1538
|
+
# @param [Google::Apis::RequestOptions] options
|
1539
|
+
# Request-specific options
|
1540
|
+
#
|
1541
|
+
# @yield [result, err] Result & error if block supplied
|
1542
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ListPreferenceSetsResponse] parsed result object
|
1543
|
+
# @yieldparam err [StandardError] error object if request failed
|
1544
|
+
#
|
1545
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::ListPreferenceSetsResponse]
|
1546
|
+
#
|
1547
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1548
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1549
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1550
|
+
def list_project_location_preference_sets(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1551
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/preferenceSets', options)
|
1552
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListPreferenceSetsResponse::Representation
|
1553
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::ListPreferenceSetsResponse
|
1554
|
+
command.params['parent'] = parent unless parent.nil?
|
1555
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1556
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1557
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1558
|
+
command.query['fields'] = fields unless fields.nil?
|
1559
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1560
|
+
execute_or_queue_command(command, &block)
|
1561
|
+
end
|
1562
|
+
|
1563
|
+
# Updates the parameters of a preference set.
|
1564
|
+
# @param [String] name
|
1565
|
+
# Output only. Name of the preference set.
|
1566
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::PreferenceSet] preference_set_object
|
1567
|
+
# @param [String] request_id
|
1568
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1569
|
+
# request ID so that if you must retry your request, the server will know to
|
1570
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1571
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
1572
|
+
# situation where you make an initial request and the request times out. If you
|
1573
|
+
# make the request again with the same request ID, the server can check if
|
1574
|
+
# original operation with the same request ID was received, and if so, will
|
1575
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1576
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1577
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1578
|
+
# @param [String] update_mask
|
1579
|
+
# Required. Field mask is used to specify the fields to be overwritten in the `
|
1580
|
+
# PreferenceSet` resource by the update. The values specified in the `
|
1581
|
+
# update_mask` field are relative to the resource, not the full request. A field
|
1582
|
+
# will be overwritten if it is in the mask. A single * value in the mask lets
|
1583
|
+
# you to overwrite all fields.
|
1584
|
+
# @param [String] fields
|
1585
|
+
# Selector specifying which fields to include in a partial response.
|
1586
|
+
# @param [String] quota_user
|
1587
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1588
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1589
|
+
# @param [Google::Apis::RequestOptions] options
|
1590
|
+
# Request-specific options
|
1591
|
+
#
|
1592
|
+
# @yield [result, err] Result & error if block supplied
|
1593
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
1594
|
+
# @yieldparam err [StandardError] error object if request failed
|
1595
|
+
#
|
1596
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
1597
|
+
#
|
1598
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1599
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1600
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1601
|
+
def patch_project_location_preference_set(name, preference_set_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1602
|
+
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
1603
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::PreferenceSet::Representation
|
1604
|
+
command.request_object = preference_set_object
|
1605
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
1606
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
1607
|
+
command.params['name'] = name unless name.nil?
|
1608
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1609
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1610
|
+
command.query['fields'] = fields unless fields.nil?
|
1611
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1612
|
+
execute_or_queue_command(command, &block)
|
1613
|
+
end
|
1614
|
+
|
885
1615
|
# Creates a new source in a given project and location.
|
886
1616
|
# @param [String] parent
|
887
1617
|
# Required. Value for parent.
|