Migration Center V1 API - Class Google::Cloud::MigrationCenter::V1::MigrationCenter::Rest::ServiceStub (v1.1.0)

Reference documentation and code samples for the Migration Center V1 API class Google::Cloud::MigrationCenter::V1::MigrationCenter::Rest::ServiceStub.

REST service stub for the MigrationCenter service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#add_assets_to_group

def add_assets_to_group(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the add_assets_to_group REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#aggregate_assets_values

def aggregate_assets_values(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::AggregateAssetsValuesResponse

Baseline implementation for the aggregate_assets_values REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#batch_delete_assets

def batch_delete_assets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the batch_delete_assets REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#batch_update_assets

def batch_update_assets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::BatchUpdateAssetsResponse

Baseline implementation for the batch_update_assets REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_group

def create_group(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_group REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_import_data_file

def create_import_data_file(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_import_data_file REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_import_job

def create_import_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_import_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_preference_set

def create_preference_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_preference_set REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_report

def create_report(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_report REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_report_config

def create_report_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_report_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_source

def create_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_asset

def delete_asset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_asset REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_group

def delete_group(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_group REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_import_data_file

def delete_import_data_file(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_import_data_file REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_import_job

def delete_import_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_import_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_preference_set

def delete_preference_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_preference_set REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_report

def delete_report(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_report REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_report_config

def delete_report_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_report_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_source

def delete_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_asset

def get_asset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::Asset

Baseline implementation for the get_asset REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_error_frame

def get_error_frame(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ErrorFrame

Baseline implementation for the get_error_frame REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_group

def get_group(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::Group

Baseline implementation for the get_group REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_import_data_file

def get_import_data_file(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ImportDataFile

Baseline implementation for the get_import_data_file REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_import_job

def get_import_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ImportJob

Baseline implementation for the get_import_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_preference_set

def get_preference_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::PreferenceSet

Baseline implementation for the get_preference_set REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_report

def get_report(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::Report

Baseline implementation for the get_report REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_report_config

def get_report_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ReportConfig

Baseline implementation for the get_report_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_settings

def get_settings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::Settings

Baseline implementation for the get_settings REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_source

def get_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::Source

Baseline implementation for the get_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_assets

def list_assets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ListAssetsResponse

Baseline implementation for the list_assets REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_error_frames

def list_error_frames(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ListErrorFramesResponse

Baseline implementation for the list_error_frames REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_groups

def list_groups(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ListGroupsResponse

Baseline implementation for the list_groups REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_import_data_files

def list_import_data_files(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ListImportDataFilesResponse

Baseline implementation for the list_import_data_files REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_import_jobs

def list_import_jobs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ListImportJobsResponse

Baseline implementation for the list_import_jobs REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_preference_sets

def list_preference_sets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ListPreferenceSetsResponse

Baseline implementation for the list_preference_sets REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_report_configs

def list_report_configs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ListReportConfigsResponse

Baseline implementation for the list_report_configs REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_reports

def list_reports(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ListReportsResponse

Baseline implementation for the list_reports REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_sources

def list_sources(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ListSourcesResponse

Baseline implementation for the list_sources REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#remove_assets_from_group

def remove_assets_from_group(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the remove_assets_from_group REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#report_asset_frames

def report_asset_frames(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::ReportAssetFramesResponse

Baseline implementation for the report_asset_frames REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#run_import_job

def run_import_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the run_import_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_asset

def update_asset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::MigrationCenter::V1::Asset

Baseline implementation for the update_asset REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_group

def update_group(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_group REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_import_job

def update_import_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_import_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_preference_set

def update_preference_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_preference_set REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_settings

def update_settings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_settings REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_source

def update_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#validate_import_job

def validate_import_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the validate_import_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)