Class: Google::Apis::MigrationcenterV1alpha1::MigrationCenterAPIService

Inherits:
Core::BaseService
  • Object
show all
Defined in:
lib/google/apis/migrationcenter_v1alpha1/service.rb

Overview

Migration Center API

A unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud.

Examples:

require 'google/apis/migrationcenter_v1alpha1'

Migrationcenter = Google::Apis::MigrationcenterV1alpha1 # Alias the module
service = Migrationcenter::MigrationCenterAPIService.new

See Also:

Constant Summary collapse

DEFAULT_ENDPOINT_TEMPLATE =
"https://migrationcenter.$UNIVERSE_DOMAIN$/"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMigrationCenterAPIService



48
49
50
51
52
53
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 48

def initialize
  super(DEFAULT_ENDPOINT_TEMPLATE, '',
        client_name: 'google-apis-migrationcenter_v1alpha1',
        client_version: Google::Apis::MigrationcenterV1alpha1::GEM_VERSION)
  @batch_path = 'batch'
end

Instance Attribute Details

#keyString



41
42
43
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 41

def key
  @key
end

#quota_userString



46
47
48
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 46

def quota_user
  @quota_user
end

Instance Method Details

#add_assets_to_group(group, add_assets_to_group_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Adds assets to a group.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



982
983
984
985
986
987
988
989
990
991
992
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 982

def add_assets_to_group(group, add_assets_to_group_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+group}:addAssets', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::AddAssetsToGroupRequest::Representation
  command.request_object = add_assets_to_group_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['group'] = group unless group.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#aggregate_project_location_asset_values(parent, aggregate_assets_values_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::AggregateAssetsValuesResponse

Aggregates the requested fields based on provided function.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



235
236
237
238
239
240
241
242
243
244
245
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 235

def aggregate_project_location_asset_values(parent, aggregate_assets_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/assets:aggregateValues', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::AggregateAssetsValuesRequest::Representation
  command.request_object = aggregate_assets_values_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::AggregateAssetsValuesResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::AggregateAssetsValuesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

Gets the link to the generated artifact of a given type for a Report.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2334

def artifact_project_location_report_config_report_link(name, generate_report_artifact_link_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:artifactLink', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::GenerateReportArtifactLinkRequest::Representation
  command.request_object = generate_report_artifact_link_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ReportArtifactLink::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ReportArtifactLink
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#batch_delete_assets(parent, batch_delete_assets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Empty

Deletes list of Assets.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



268
269
270
271
272
273
274
275
276
277
278
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 268

def batch_delete_assets(parent, batch_delete_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/assets:batchDelete', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::BatchDeleteAssetsRequest::Representation
  command.request_object = batch_delete_assets_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Empty::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Empty
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#batch_update_assets(parent, batch_update_assets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::BatchUpdateAssetsResponse

Updates the parameters of a list of assets.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



301
302
303
304
305
306
307
308
309
310
311
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 301

def batch_update_assets(parent, batch_update_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/assets:batchUpdate', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::BatchUpdateAssetsRequest::Representation
  command.request_object = batch_update_assets_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::BatchUpdateAssetsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::BatchUpdateAssetsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Empty

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1 , corresponding to Code.CANCELLED.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1732

def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:cancel', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::CancelOperationRequest::Representation
  command.request_object = cancel_operation_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Empty::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Empty
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_assets_export_job(parent, assets_export_job_object = nil, assets_export_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Creates a new assets export job.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



560
561
562
563
564
565
566
567
568
569
570
571
572
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 560

def create_project_location_assets_export_job(parent, assets_export_job_object = nil, assets_export_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/assetsExportJobs', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::AssetsExportJob::Representation
  command.request_object = assets_export_job_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['parent'] = parent unless parent.nil?
  command.query['assetsExportJobId'] = assets_export_job_id unless assets_export_job_id.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_discovery_client(parent, discovery_client_object = nil, discovery_client_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Creates a new discovery client.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



742
743
744
745
746
747
748
749
750
751
752
753
754
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 742

def create_project_location_discovery_client(parent, discovery_client_object = nil, discovery_client_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/discoveryClients', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::DiscoveryClient::Representation
  command.request_object = discovery_client_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['parent'] = parent unless parent.nil?
  command.query['discoveryClientId'] = discovery_client_id unless discovery_client_id.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_group(parent, group_object = nil, group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Creates a new group in a given project and location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1032

def create_project_location_group(parent, group_object = nil, group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/groups', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::Group::Representation
  command.request_object = group_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['parent'] = parent unless parent.nil?
  command.query['groupId'] = group_id unless group_id.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_import_job(parent, import_job_object = nil, import_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Creates an import job.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1280

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)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/importJobs', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::ImportJob::Representation
  command.request_object = import_job_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['parent'] = parent unless parent.nil?
  command.query['importJobId'] = import_job_id unless import_job_id.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#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) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Creates an import data file.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1571

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)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/importDataFiles', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::ImportDataFile::Representation
  command.request_object = import_data_file_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['parent'] = parent unless parent.nil?
  command.query['importDataFileId'] = import_data_file_id unless import_data_file_id.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_preference_set(parent, preference_set_object = nil, preference_set_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Creates a new preference set in a given project and location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1889

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)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/preferenceSets', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::PreferenceSet::Representation
  command.request_object = preference_set_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['parent'] = parent unless parent.nil?
  command.query['preferenceSetId'] = preference_set_id unless preference_set_id.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_report_config(parent, report_config_object = nil, report_config_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Creates a report configuration.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2179

def create_project_location_report_config(parent, report_config_object = nil, report_config_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/reportConfigs', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::ReportConfig::Representation
  command.request_object = report_config_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['parent'] = parent unless parent.nil?
  command.query['reportConfigId'] = report_config_id unless report_config_id.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_report_config_report(parent, report_object = nil, report_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Creates a report.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2384

def create_project_location_report_config_report(parent, report_object = nil, report_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/reports', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::Report::Representation
  command.request_object = report_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['parent'] = parent unless parent.nil?
  command.query['reportId'] = report_id unless report_id.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_report_config_report_report_export_job(parent, report_export_job_object = nil, report_export_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Export a Report into a supported destination.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2586

def create_project_location_report_config_report_report_export_job(parent, report_export_job_object = nil, report_export_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/reportExportJobs', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::ReportExportJob::Representation
  command.request_object = report_export_job_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['parent'] = parent unless parent.nil?
  command.query['reportExportJobId'] = report_export_job_id unless report_export_job_id.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_source(parent, source_object = nil, request_id: nil, source_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Creates a new source in a given project and location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2780

def create_project_location_source(parent, source_object = nil, request_id: nil, source_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/sources', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::Source::Representation
  command.request_object = source_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['parent'] = parent unless parent.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['sourceId'] = source_id unless source_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_location_asset(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Empty

Deletes an asset.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



344
345
346
347
348
349
350
351
352
353
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 344

def delete_project_location_asset(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Empty::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Empty
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_location_assets_export_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Deletes an assets export job.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



594
595
596
597
598
599
600
601
602
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 594

def delete_project_location_assets_export_job(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_location_discovery_client(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Deletes a discovery client.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



787
788
789
790
791
792
793
794
795
796
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 787

def delete_project_location_discovery_client(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_location_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Deletes a group.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1077

def delete_project_location_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_location_import_job(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Deletes an import job.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1328

def delete_project_location_import_job(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['force'] = force unless force.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_location_import_job_import_data_file(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Delete an import data file.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1616

def delete_project_location_import_job_import_data_file(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Empty

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code. UNIMPLEMENTED.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1767
1768
1769
1770
1771
1772
1773
1774
1775
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1767

def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Empty::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Empty
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_location_preference_set(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Deletes a preference set.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1934

def delete_project_location_preference_set(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_location_report_config(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Deletes a ReportConfig.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2228

def delete_project_location_report_config(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['force'] = force unless force.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_location_report_config_report(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Deletes a Report.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2429

def delete_project_location_report_config_report(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_location_report_config_report_report_export_job(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Deletes an report export job.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2631

def delete_project_location_report_config_report_report_export_job(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_location_source(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Deletes a source.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2825

def delete_project_location_source(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#export_report(name, export_report_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Export a Report into a supported format.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2461

def export_report(name, export_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:export', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::ExportReportRequest::Representation
  command.request_object = export_report_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Location

Gets information about a location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



75
76
77
78
79
80
81
82
83
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 75

def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Location::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Location
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_asset(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Asset

Gets the details of an asset.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



377
378
379
380
381
382
383
384
385
386
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 377

def get_project_location_asset(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Asset::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Asset
  command.params['name'] = name unless name.nil?
  command.query['view'] = view unless view.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_assets_export_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::AssetsExportJob

Gets the details of an assets export job.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



624
625
626
627
628
629
630
631
632
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 624

def get_project_location_assets_export_job(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::AssetsExportJob::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::AssetsExportJob
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_discovery_client(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::DiscoveryClient

Gets the details of a discovery client.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



818
819
820
821
822
823
824
825
826
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 818

def get_project_location_discovery_client(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::DiscoveryClient::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::DiscoveryClient
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_group(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Group

Gets the details of a group.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1108
1109
1110
1111
1112
1113
1114
1115
1116
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1108

def get_project_location_group(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Group::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Group
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_import_job(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ImportJob

Gets the details of an import job.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1362

def get_project_location_import_job(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ImportJob::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ImportJob
  command.params['name'] = name unless name.nil?
  command.query['view'] = view unless view.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_import_job_import_data_file(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ImportDataFile

Gets an import data file.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1647
1648
1649
1650
1651
1652
1653
1654
1655
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1647

def get_project_location_import_job_import_data_file(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ImportDataFile::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ImportDataFile
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1798
1799
1800
1801
1802
1803
1804
1805
1806
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1798

def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_preference_set(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::PreferenceSet

Gets the details of a preference set.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1965
1966
1967
1968
1969
1970
1971
1972
1973
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1965

def get_project_location_preference_set(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::PreferenceSet::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::PreferenceSet
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_relation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Relation

Gets the details of an relation.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2088
2089
2090
2091
2092
2093
2094
2095
2096
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2088

def get_project_location_relation(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Relation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Relation
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_report_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ReportConfig

Gets details of a single ReportConfig.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2260
2261
2262
2263
2264
2265
2266
2267
2268
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2260

def get_project_location_report_config(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ReportConfig::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ReportConfig
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_report_config_report(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Report

Gets details of a single Report.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2495

def get_project_location_report_config_report(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Report::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Report
  command.params['name'] = name unless name.nil?
  command.query['view'] = view unless view.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_report_config_report_report_export_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ReportExportJob

Gets the details of a report export job.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2662
2663
2664
2665
2666
2667
2668
2669
2670
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2662

def get_project_location_report_config_report_report_export_job(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ReportExportJob::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ReportExportJob
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Settings

Gets the details of regional settings.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



105
106
107
108
109
110
111
112
113
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 105

def get_project_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Settings::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Settings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_source(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Source

Gets the details of a source.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2856
2857
2858
2859
2860
2861
2862
2863
2864
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2856

def get_project_location_source(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Source::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Source
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_source_error_frame(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ErrorFrame

Gets the details of an error frame.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2985

def get_project_location_source_error_frame(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ErrorFrame::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ErrorFrame
  command.params['name'] = name unless name.nil?
  command.query['view'] = view unless view.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_assets(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, show_hidden: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListAssetsResponse

Lists all the assets in a given project and location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 422

def list_project_location_assets(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, show_hidden: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/assets', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListAssetsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListAssetsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['showHidden'] = show_hidden unless show_hidden.nil?
  command.query['view'] = view unless view.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_assets_export_jobs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListAssetsExportJobsResponse

Lists all the assets export jobs in a given project and location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



659
660
661
662
663
664
665
666
667
668
669
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 659

def list_project_location_assets_export_jobs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/assetsExportJobs', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListAssetsExportJobsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListAssetsExportJobsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_discovery_clients(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListDiscoveryClientsResponse

Lists all the discovery clients in a given project and location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



861
862
863
864
865
866
867
868
869
870
871
872
873
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 861

def list_project_location_discovery_clients(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/discoveryClients', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListDiscoveryClientsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListDiscoveryClientsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_groups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListGroupsResponse

Lists all groups in a given project and location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1147

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)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/groups', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListGroupsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListGroupsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#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) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListImportDataFilesResponse

List import data files.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1690

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)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/importDataFiles', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListImportDataFilesResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListImportDataFilesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#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) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListImportJobsResponse

Lists all import jobs.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1404

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)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/importJobs', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListImportJobsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListImportJobsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['view'] = view unless view.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListOperationsResponse

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1842

def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}/operations', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListOperationsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListOperationsResponse
  command.params['name'] = name unless name.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_preference_sets(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListPreferenceSetsResponse

Lists all the preference sets in a given project and location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2003

def list_project_location_preference_sets(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/preferenceSets', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListPreferenceSetsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListPreferenceSetsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_relations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListRelationsResponse

Lists all the relations in a given project and location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2127

def list_project_location_relations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/relations', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListRelationsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListRelationsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_report_config_report_report_export_jobs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListReportExportJobsResponse

Lists all the report export jobs for a given report.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2697

def list_project_location_report_config_report_report_export_jobs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/reportExportJobs', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListReportExportJobsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListReportExportJobsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_report_config_reports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListReportsResponse

Lists Reports in a given ReportConfig.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2537

def list_project_location_report_config_reports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/reports', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListReportsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListReportsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['view'] = view unless view.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_report_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListReportConfigsResponse

Lists ReportConfigs in a given project and location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2299

def list_project_location_report_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/reportConfigs', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListReportConfigsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListReportConfigsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_source_error_frames(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListErrorFramesResponse

Lists all error frames in a given source and location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 3024

def list_project_location_source_error_frames(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/errorFrames', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListErrorFramesResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListErrorFramesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['view'] = view unless view.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_sources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListSourcesResponse

Lists all the sources in a given project and location.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2895

def list_project_location_sources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+parent}/sources', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListSourcesResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListSourcesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ListLocationsResponse

Lists information about the supported locations for this service.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



148
149
150
151
152
153
154
155
156
157
158
159
160
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 148

def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha1/{+name}/locations', options)
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListLocationsResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ListLocationsResponse
  command.params['name'] = name unless name.nil?
  command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_project_location_asset(name, asset_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Asset

Updates the parameters of an asset.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



476
477
478
479
480
481
482
483
484
485
486
487
488
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 476

def patch_project_location_asset(name, asset_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::Asset::Representation
  command.request_object = asset_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Asset::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Asset
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_project_location_discovery_client(name, discovery_client_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Updates a discovery client.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



913
914
915
916
917
918
919
920
921
922
923
924
925
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 913

def patch_project_location_discovery_client(name, discovery_client_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::DiscoveryClient::Representation
  command.request_object = discovery_client_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_project_location_group(name, group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Updates the parameters of a group.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1199

def patch_project_location_group(name, group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::Group::Representation
  command.request_object = group_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_project_location_import_job(name, import_job_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Updates an import job.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1457

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)
  command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::ImportJob::Representation
  command.request_object = import_job_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_project_location_preference_set(name, preference_set_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Updates the parameters of a preference set.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2054

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)
  command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::PreferenceSet::Representation
  command.request_object = preference_set_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_project_location_source(name, source_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Updates the parameters of a source.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2947

def patch_project_location_source(name, source_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::Source::Representation
  command.request_object = source_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#remove_assets_from_group(group, remove_assets_from_group_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Removes assets from a group.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1234

def remove_assets_from_group(group, remove_assets_from_group_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+group}:removeAssets', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::RemoveAssetsFromGroupRequest::Representation
  command.request_object = remove_assets_from_group_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['group'] = group unless group.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#report_project_location_asset_asset_frames(parent, frames_object = nil, source: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::ReportAssetFramesResponse

Reports a set of frames.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



513
514
515
516
517
518
519
520
521
522
523
524
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 513

def report_project_location_asset_asset_frames(parent, frames_object = nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+parent}/assets:reportAssetFrames', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::Frames::Representation
  command.request_object = frames_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::ReportAssetFramesResponse::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::ReportAssetFramesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['source'] = source unless source.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#run_assets_export_job(name, run_assets_export_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Runs an assets export job, returning an AssetsExportJobExecution.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



692
693
694
695
696
697
698
699
700
701
702
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 692

def run_assets_export_job(name, run_assets_export_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:run', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::RunAssetsExportJobRequest::Representation
  command.request_object = run_assets_export_job_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#run_import_job(name, run_import_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Runs an import job.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1492

def run_import_job(name, run_import_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:run', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::RunImportJobRequest::Representation
  command.request_object = run_import_job_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#run_report_export_job(name, run_report_export_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Runs a report export job.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 2730

def run_report_export_job(name, run_report_export_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:run', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::RunReportExportJobRequest::Representation
  command.request_object = run_report_export_job_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#send_project_location_discovery_client_heartbeat(name, send_discovery_client_heartbeat_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Sends a discovery client heartbeat. Healthy clients are expected to send heartbeats regularly (normally every few minutes).

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



949
950
951
952
953
954
955
956
957
958
959
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 949

def send_project_location_discovery_client_heartbeat(name, send_discovery_client_heartbeat_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:sendHeartbeat', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::SendDiscoveryClientHeartbeatRequest::Representation
  command.request_object = send_discovery_client_heartbeat_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_project_location_settings(name, settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Updates the regional-level project settings.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



200
201
202
203
204
205
206
207
208
209
210
211
212
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 200

def update_project_location_settings(name, settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::Settings::Representation
  command.request_object = settings_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['requestId'] = request_id unless request_id.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#validate_import_job(name, validate_import_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MigrationcenterV1alpha1::Operation

Validates an import job.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
# File 'lib/google/apis/migrationcenter_v1alpha1/service.rb', line 1525

def validate_import_job(name, validate_import_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha1/{+name}:validate', options)
  command.request_representation = Google::Apis::MigrationcenterV1alpha1::ValidateImportJobRequest::Representation
  command.request_object = validate_import_job_request_object
  command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
  command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end