A service that migrates resources from automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
MigrationServiceClient(MigrationServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
MigrationServiceClient const &
|
MigrationServiceClient(MigrationServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
MigrationServiceClient &&
|
MigrationServiceClient(std::shared_ptr< MigrationServiceConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< MigrationServiceConnection >
|
opts |
Options
|
Operators
operator=(MigrationServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
MigrationServiceClient const &
|
Returns | |
---|---|
Type | Description |
MigrationServiceClient & |
operator=(MigrationServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
MigrationServiceClient &&
|
Returns | |
---|---|
Type | Description |
MigrationServiceClient & |
Functions
SearchMigratableResources(std::string const &, Options)
Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The location that the migratable resources should be searched from. It's the Vertex AI location that the resources can be migrated to, not the resources' original location. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::aiplatform::v1::MigratableResource > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
SearchMigratableResources(google::cloud::aiplatform::v1::SearchMigratableResourcesRequest, Options)
Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::aiplatform::v1::SearchMigratableResourcesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::aiplatform::v1::MigratableResource > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
BatchMigrateResources(std::string const &, std::vector< google::cloud::aiplatform::v1::MigrateResourceRequest > const &, Options)
Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The location of the migrated resource will live in. Format: |
migrate_resource_requests |
std::vector< google::cloud::aiplatform::v1::MigrateResourceRequest > const &
Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::aiplatform::v1::BatchMigrateResourcesResponse > > |
A |
BatchMigrateResources(NoAwaitTag, std::string const &, std::vector< google::cloud::aiplatform::v1::MigrateResourceRequest > const &, Options)
Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
parent |
std::string const &
|
migrate_resource_requests |
std::vector< google::cloud::aiplatform::v1::MigrateResourceRequest > const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
BatchMigrateResources(google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const &, Options)
Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::aiplatform::v1::BatchMigrateResourcesResponse > > |
A |
BatchMigrateResources(NoAwaitTag, google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const &, Options)
Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
BatchMigrateResources(google::longrunning::Operation const &, Options)
Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::aiplatform::v1::BatchMigrateResourcesResponse > > |