Class MigrationCenterConnection (2.15.1)

This interface defines virtual methods for each of the user-facing overload sets in MigrationCenterClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type MigrationCenterClient.

To create a concrete instance, see MakeMigrationCenterConnection().

For mocking, see migrationcenter_v1_mocks::MockMigrationCenterConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListAssets(google::cloud::migrationcenter::v1::ListAssetsRequest)

Parameter
Name Description
request google::cloud::migrationcenter::v1::ListAssetsRequest
Returns
Type Description
StreamRange< google::cloud::migrationcenter::v1::Asset >

virtual GetAsset(google::cloud::migrationcenter::v1::GetAssetRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::GetAssetRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::Asset >

virtual UpdateAsset(google::cloud::migrationcenter::v1::UpdateAssetRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::UpdateAssetRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::Asset >

virtual BatchUpdateAssets(google::cloud::migrationcenter::v1::BatchUpdateAssetsRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::BatchUpdateAssetsRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::BatchUpdateAssetsResponse >

virtual DeleteAsset(google::cloud::migrationcenter::v1::DeleteAssetRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::DeleteAssetRequest const &
Returns
Type Description
Status

virtual BatchDeleteAssets(google::cloud::migrationcenter::v1::BatchDeleteAssetsRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::BatchDeleteAssetsRequest const &
Returns
Type Description
Status

virtual ReportAssetFrames(google::cloud::migrationcenter::v1::ReportAssetFramesRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::ReportAssetFramesRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::ReportAssetFramesResponse >

virtual AggregateAssetsValues(google::cloud::migrationcenter::v1::AggregateAssetsValuesRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::AggregateAssetsValuesRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::AggregateAssetsValuesResponse >

virtual CreateImportJob(google::cloud::migrationcenter::v1::CreateImportJobRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::CreateImportJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::ImportJob > >

virtual ListImportJobs(google::cloud::migrationcenter::v1::ListImportJobsRequest)

Parameter
Name Description
request google::cloud::migrationcenter::v1::ListImportJobsRequest
Returns
Type Description
StreamRange< google::cloud::migrationcenter::v1::ImportJob >

virtual GetImportJob(google::cloud::migrationcenter::v1::GetImportJobRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::GetImportJobRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::ImportJob >

virtual DeleteImportJob(google::cloud::migrationcenter::v1::DeleteImportJobRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::DeleteImportJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::OperationMetadata > >

virtual UpdateImportJob(google::cloud::migrationcenter::v1::UpdateImportJobRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::UpdateImportJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::ImportJob > >

virtual ValidateImportJob(google::cloud::migrationcenter::v1::ValidateImportJobRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::ValidateImportJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::OperationMetadata > >

virtual RunImportJob(google::cloud::migrationcenter::v1::RunImportJobRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::RunImportJobRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::OperationMetadata > >

virtual GetImportDataFile(google::cloud::migrationcenter::v1::GetImportDataFileRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::GetImportDataFileRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::ImportDataFile >

virtual ListImportDataFiles(google::cloud::migrationcenter::v1::ListImportDataFilesRequest)

Parameter
Name Description
request google::cloud::migrationcenter::v1::ListImportDataFilesRequest
Returns
Type Description
StreamRange< google::cloud::migrationcenter::v1::ImportDataFile >

virtual CreateImportDataFile(google::cloud::migrationcenter::v1::CreateImportDataFileRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::CreateImportDataFileRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::ImportDataFile > >

virtual DeleteImportDataFile(google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::OperationMetadata > >

virtual ListGroups(google::cloud::migrationcenter::v1::ListGroupsRequest)

Parameter
Name Description
request google::cloud::migrationcenter::v1::ListGroupsRequest
Returns
Type Description
StreamRange< google::cloud::migrationcenter::v1::Group >

virtual GetGroup(google::cloud::migrationcenter::v1::GetGroupRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::GetGroupRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::Group >

virtual CreateGroup(google::cloud::migrationcenter::v1::CreateGroupRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::CreateGroupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::Group > >

virtual UpdateGroup(google::cloud::migrationcenter::v1::UpdateGroupRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::UpdateGroupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::Group > >

virtual DeleteGroup(google::cloud::migrationcenter::v1::DeleteGroupRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::DeleteGroupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::OperationMetadata > >

virtual AddAssetsToGroup(google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::Group > >

virtual RemoveAssetsFromGroup(google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::Group > >

virtual ListErrorFrames(google::cloud::migrationcenter::v1::ListErrorFramesRequest)

Parameter
Name Description
request google::cloud::migrationcenter::v1::ListErrorFramesRequest
Returns
Type Description
StreamRange< google::cloud::migrationcenter::v1::ErrorFrame >

virtual GetErrorFrame(google::cloud::migrationcenter::v1::GetErrorFrameRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::GetErrorFrameRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::ErrorFrame >

virtual ListSources(google::cloud::migrationcenter::v1::ListSourcesRequest)

Parameter
Name Description
request google::cloud::migrationcenter::v1::ListSourcesRequest
Returns
Type Description
StreamRange< google::cloud::migrationcenter::v1::Source >

virtual GetSource(google::cloud::migrationcenter::v1::GetSourceRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::GetSourceRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::Source >

virtual CreateSource(google::cloud::migrationcenter::v1::CreateSourceRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::CreateSourceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::Source > >

virtual UpdateSource(google::cloud::migrationcenter::v1::UpdateSourceRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::UpdateSourceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::Source > >

virtual DeleteSource(google::cloud::migrationcenter::v1::DeleteSourceRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::DeleteSourceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::OperationMetadata > >

virtual ListPreferenceSets(google::cloud::migrationcenter::v1::ListPreferenceSetsRequest)

Parameter
Name Description
request google::cloud::migrationcenter::v1::ListPreferenceSetsRequest
Returns
Type Description
StreamRange< google::cloud::migrationcenter::v1::PreferenceSet >

virtual GetPreferenceSet(google::cloud::migrationcenter::v1::GetPreferenceSetRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::GetPreferenceSetRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::PreferenceSet >

virtual CreatePreferenceSet(google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::PreferenceSet > >

virtual UpdatePreferenceSet(google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::PreferenceSet > >

virtual DeletePreferenceSet(google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::OperationMetadata > >

virtual GetSettings(google::cloud::migrationcenter::v1::GetSettingsRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::GetSettingsRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::Settings >

virtual UpdateSettings(google::cloud::migrationcenter::v1::UpdateSettingsRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::UpdateSettingsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::Settings > >

virtual CreateReportConfig(google::cloud::migrationcenter::v1::CreateReportConfigRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::CreateReportConfigRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::ReportConfig > >

virtual GetReportConfig(google::cloud::migrationcenter::v1::GetReportConfigRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::GetReportConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::ReportConfig >

virtual ListReportConfigs(google::cloud::migrationcenter::v1::ListReportConfigsRequest)

Parameter
Name Description
request google::cloud::migrationcenter::v1::ListReportConfigsRequest
Returns
Type Description
StreamRange< google::cloud::migrationcenter::v1::ReportConfig >

virtual DeleteReportConfig(google::cloud::migrationcenter::v1::DeleteReportConfigRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::DeleteReportConfigRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::OperationMetadata > >

virtual CreateReport(google::cloud::migrationcenter::v1::CreateReportRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::CreateReportRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::Report > >

virtual GetReport(google::cloud::migrationcenter::v1::GetReportRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::GetReportRequest const &
Returns
Type Description
StatusOr< google::cloud::migrationcenter::v1::Report >

virtual ListReports(google::cloud::migrationcenter::v1::ListReportsRequest)

Parameter
Name Description
request google::cloud::migrationcenter::v1::ListReportsRequest
Returns
Type Description
StreamRange< google::cloud::migrationcenter::v1::Report >

virtual DeleteReport(google::cloud::migrationcenter::v1::DeleteReportRequest const &)

Parameter
Name Description
request google::cloud::migrationcenter::v1::DeleteReportRequest const &
Returns
Type Description
future< StatusOr< google::cloud::migrationcenter::v1::OperationMetadata > >