A service for managing Vertex AI's machine learning Models.
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
ModelServiceClient(ModelServiceClient const &)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
ModelServiceClient const &
|
ModelServiceClient(ModelServiceClient &&)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
ModelServiceClient &&
|
ModelServiceClient(std::shared_ptr< ModelServiceConnection >, Options)
| Parameters | |
|---|---|
| Name | Description |
connection |
std::shared_ptr< ModelServiceConnection >
|
opts |
Options
|
Operators
operator=(ModelServiceClient const &)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
ModelServiceClient const &
|
| Returns | |
|---|---|
| Type | Description |
ModelServiceClient & |
|
operator=(ModelServiceClient &&)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
ModelServiceClient &&
|
| Returns | |
|---|---|
| Type | Description |
ModelServiceClient & |
|
Functions
UploadModel(std::string const &, google::cloud::aiplatform::v1::Model const &, Options)
Uploads a Model artifact into Vertex AI.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The resource name of the Location into which to upload the Model. Format: |
model |
google::cloud::aiplatform::v1::Model const &
Required. The Model to create. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::aiplatform::v1::UploadModelResponse > > |
A |
UploadModel(NoAwaitTag, std::string const &, google::cloud::aiplatform::v1::Model const &, Options)
Uploads a Model artifact into 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 &
|
model |
google::cloud::aiplatform::v1::Model const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UploadModel(google::cloud::aiplatform::v1::UploadModelRequest const &, Options)
Uploads a Model artifact into Vertex AI.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::UploadModelRequest 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::UploadModelResponse > > |
A |
UploadModel(NoAwaitTag, google::cloud::aiplatform::v1::UploadModelRequest const &, Options)
Uploads a Model artifact into 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::UploadModelRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UploadModel(google::longrunning::Operation const &, Options)
Uploads a Model artifact into 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::UploadModelResponse > > |
|
GetModel(std::string const &, Options)
Gets a Model.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the Model resource. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::aiplatform::v1::Model > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.Model) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetModel(google::cloud::aiplatform::v1::GetModelRequest const &, Options)
Gets a Model.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::GetModelRequest 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 |
StatusOr< google::cloud::aiplatform::v1::Model > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.Model) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListModels(std::string const &, Options)
Lists Models in a Location.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The resource name of the Location to list the Models from. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::aiplatform::v1::Model > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListModels(google::cloud::aiplatform::v1::ListModelsRequest, Options)
Lists Models in a Location.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::ListModelsRequest
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::Model > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListModelVersions(std::string const &, Options)
Lists versions of the specified model.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the model to list versions for. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::aiplatform::v1::Model > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListModelVersions(google::cloud::aiplatform::v1::ListModelVersionsRequest, Options)
Lists versions of the specified model.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::ListModelVersionsRequest
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::Model > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListModelVersionCheckpoints(std::string const &, Options)
Lists checkpoints of the specified model version.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the model version to list checkpoints for. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::aiplatform::v1::ModelVersionCheckpoint > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListModelVersionCheckpoints(google::cloud::aiplatform::v1::ListModelVersionCheckpointsRequest, Options)
Lists checkpoints of the specified model version.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::ListModelVersionCheckpointsRequest
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::ModelVersionCheckpoint > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
UpdateModel(google::cloud::aiplatform::v1::Model const &, google::protobuf::FieldMask const &, Options)
Updates a Model.
| Parameters | |
|---|---|
| Name | Description |
model |
google::cloud::aiplatform::v1::Model const &
Required. The Model which replaces the resource on the server. When Model Versioning is enabled, the model.name will be used to determine whether to update the model or model version.
|
update_mask |
google::protobuf::FieldMask const &
Required. The update mask applies to the resource. For the |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::aiplatform::v1::Model > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.Model) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateModel(google::cloud::aiplatform::v1::UpdateModelRequest const &, Options)
Updates a Model.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::UpdateModelRequest 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 |
StatusOr< google::cloud::aiplatform::v1::Model > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.Model) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateExplanationDataset(std::string const &, Options)
Incrementally update the dataset used for an examples model.
| Parameters | |
|---|---|
| Name | Description |
model |
std::string const &
Required. The resource name of the Model to update. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::aiplatform::v1::UpdateExplanationDatasetResponse > > |
A |
UpdateExplanationDataset(NoAwaitTag, std::string const &, Options)
Incrementally update the dataset used for an examples model.
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
|
model |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UpdateExplanationDataset(google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const &, Options)
Incrementally update the dataset used for an examples model.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest 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::UpdateExplanationDatasetResponse > > |
A |
UpdateExplanationDataset(NoAwaitTag, google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const &, Options)
Incrementally update the dataset used for an examples model.
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::UpdateExplanationDatasetRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
UpdateExplanationDataset(google::longrunning::Operation const &, Options)
Incrementally update the dataset used for an examples model.
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::UpdateExplanationDatasetResponse > > |
|
DeleteModel(std::string const &, Options)
Deletes a Model.
A model cannot be deleted if any [Endpoint][google.cloud.aiplatform.v1.Endpoint] resource has a [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] based on the model in its [deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] field.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the Model resource to be deleted. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::aiplatform::v1::DeleteOperationMetadata > > |
A |
DeleteModel(NoAwaitTag, std::string const &, Options)
Deletes a Model.
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
|
name |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteModel(google::cloud::aiplatform::v1::DeleteModelRequest const &, Options)
Deletes a Model.
A model cannot be deleted if any [Endpoint][google.cloud.aiplatform.v1.Endpoint] resource has a [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] based on the model in its [deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] field.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::DeleteModelRequest 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::DeleteOperationMetadata > > |
A |
DeleteModel(NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelRequest const &, Options)
Deletes a Model.
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::DeleteModelRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteModel(google::longrunning::Operation const &, Options)
Deletes a Model.
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::DeleteOperationMetadata > > |
|
DeleteModelVersion(std::string const &, Options)
Deletes a Model version.
Model version can only be deleted if there are no [DeployedModels][google.cloud.aiplatform.v1.DeployedModel] created from it. Deleting the only version in the Model is not allowed. Use DeleteModel for deleting the Model instead.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the model version to be deleted, with a version ID explicitly included. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::aiplatform::v1::DeleteOperationMetadata > > |
A |
DeleteModelVersion(NoAwaitTag, std::string const &, Options)
Deletes a Model version.
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
|
name |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteModelVersion(google::cloud::aiplatform::v1::DeleteModelVersionRequest const &, Options)
Deletes a Model version.
Model version can only be deleted if there are no [DeployedModels][google.cloud.aiplatform.v1.DeployedModel] created from it. Deleting the only version in the Model is not allowed. Use DeleteModel for deleting the Model instead.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::DeleteModelVersionRequest 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::DeleteOperationMetadata > > |
A |
DeleteModelVersion(NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelVersionRequest const &, Options)
Deletes a Model version.
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::DeleteModelVersionRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
DeleteModelVersion(google::longrunning::Operation const &, Options)
Deletes a Model version.
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::DeleteOperationMetadata > > |
|
MergeVersionAliases(std::string const &, std::vector< std::string > const &, Options)
Merges a set of aliases for a Model version.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the model version to merge aliases, with a version ID explicitly included. |
version_aliases |
std::vector< std::string > const &
Required. The set of version aliases to merge. The alias should be at most 128 characters, and match |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::aiplatform::v1::Model > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.Model) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
MergeVersionAliases(google::cloud::aiplatform::v1::MergeVersionAliasesRequest const &, Options)
Merges a set of aliases for a Model version.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::MergeVersionAliasesRequest 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 |
StatusOr< google::cloud::aiplatform::v1::Model > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.Model) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ExportModel(std::string const &, google::cloud::aiplatform::v1::ExportModelRequest::OutputConfig const &, Options)
Exports a trained, exportable Model to a location specified by the user.
A Model is considered to be exportable if it has at least one supported export format.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The resource name of the Model to export. The resource name may contain version id or version alias to specify the version, if no version is specified, the default version will be exported. |
output_config |
google::cloud::aiplatform::v1::ExportModelRequest::OutputConfig const &
Required. The desired output location and configuration. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::aiplatform::v1::ExportModelResponse > > |
A |
ExportModel(NoAwaitTag, std::string const &, google::cloud::aiplatform::v1::ExportModelRequest::OutputConfig const &, Options)
Exports a trained, exportable Model to a location specified by the user.
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
|
name |
std::string const &
|
output_config |
google::cloud::aiplatform::v1::ExportModelRequest::OutputConfig const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
ExportModel(google::cloud::aiplatform::v1::ExportModelRequest const &, Options)
Exports a trained, exportable Model to a location specified by the user.
A Model is considered to be exportable if it has at least one supported export format.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::ExportModelRequest 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::ExportModelResponse > > |
A |
ExportModel(NoAwaitTag, google::cloud::aiplatform::v1::ExportModelRequest const &, Options)
Exports a trained, exportable Model to a location specified by the user.
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::ExportModelRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
ExportModel(google::longrunning::Operation const &, Options)
Exports a trained, exportable Model to a location specified by the user.
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::ExportModelResponse > > |
|
CopyModel(std::string const &, std::string const &, Options)
Copies an already existing Vertex AI Model into the specified Location.
The source Model must exist in the same Project. When copying custom Models, the users themselves are responsible for Model.metadata content to be region-agnostic, as well as making sure that any resources (e.g. files) it depends on remain accessible.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The resource name of the Location into which to copy the Model. Format: |
source_model |
std::string const &
Required. The resource name of the Model to copy. That Model must be in the same Project. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::aiplatform::v1::CopyModelResponse > > |
A |
CopyModel(NoAwaitTag, std::string const &, std::string const &, Options)
Copies an already existing Vertex AI Model into the specified Location.
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 &
|
source_model |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CopyModel(google::cloud::aiplatform::v1::CopyModelRequest const &, Options)
Copies an already existing Vertex AI Model into the specified Location.
The source Model must exist in the same Project. When copying custom Models, the users themselves are responsible for Model.metadata content to be region-agnostic, as well as making sure that any resources (e.g. files) it depends on remain accessible.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::CopyModelRequest 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::CopyModelResponse > > |
A |
CopyModel(NoAwaitTag, google::cloud::aiplatform::v1::CopyModelRequest const &, Options)
Copies an already existing Vertex AI Model into the specified Location.
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::CopyModelRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
CopyModel(google::longrunning::Operation const &, Options)
Copies an already existing Vertex AI Model into the specified Location.
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::CopyModelResponse > > |
|
ImportModelEvaluation(std::string const &, google::cloud::aiplatform::v1::ModelEvaluation const &, Options)
Imports an externally generated ModelEvaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The name of the parent model resource. Format: |
model_evaluation |
google::cloud::aiplatform::v1::ModelEvaluation const &
Required. Model evaluation resource to be imported. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::aiplatform::v1::ModelEvaluation > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.ModelEvaluation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ImportModelEvaluation(google::cloud::aiplatform::v1::ImportModelEvaluationRequest const &, Options)
Imports an externally generated ModelEvaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::ImportModelEvaluationRequest 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 |
StatusOr< google::cloud::aiplatform::v1::ModelEvaluation > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.ModelEvaluation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
BatchImportModelEvaluationSlices(std::string const &, std::vector< google::cloud::aiplatform::v1::ModelEvaluationSlice > const &, Options)
Imports a list of externally generated ModelEvaluationSlice.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The name of the parent ModelEvaluation resource. Format: |
model_evaluation_slices |
std::vector< google::cloud::aiplatform::v1::ModelEvaluationSlice > const &
Required. Model evaluation slice resource to be imported. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::aiplatform::v1::BatchImportModelEvaluationSlicesResponse > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
BatchImportModelEvaluationSlices(google::cloud::aiplatform::v1::BatchImportModelEvaluationSlicesRequest const &, Options)
Imports a list of externally generated ModelEvaluationSlice.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::BatchImportModelEvaluationSlicesRequest 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 |
StatusOr< google::cloud::aiplatform::v1::BatchImportModelEvaluationSlicesResponse > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
BatchImportEvaluatedAnnotations(std::string const &, std::vector< google::cloud::aiplatform::v1::EvaluatedAnnotation > const &, Options)
Imports a list of externally generated EvaluatedAnnotations.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The name of the parent ModelEvaluationSlice resource. Format: |
evaluated_annotations |
std::vector< google::cloud::aiplatform::v1::EvaluatedAnnotation > const &
Required. Evaluated annotations resource to be imported. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::aiplatform::v1::BatchImportEvaluatedAnnotationsResponse > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
BatchImportEvaluatedAnnotations(google::cloud::aiplatform::v1::BatchImportEvaluatedAnnotationsRequest const &, Options)
Imports a list of externally generated EvaluatedAnnotations.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::BatchImportEvaluatedAnnotationsRequest 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 |
StatusOr< google::cloud::aiplatform::v1::BatchImportEvaluatedAnnotationsResponse > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetModelEvaluation(std::string const &, Options)
Gets a ModelEvaluation.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the ModelEvaluation resource. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::aiplatform::v1::ModelEvaluation > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.ModelEvaluation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetModelEvaluation(google::cloud::aiplatform::v1::GetModelEvaluationRequest const &, Options)
Gets a ModelEvaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::GetModelEvaluationRequest 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 |
StatusOr< google::cloud::aiplatform::v1::ModelEvaluation > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.ModelEvaluation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListModelEvaluations(std::string const &, Options)
Lists ModelEvaluations in a Model.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The resource name of the Model to list the ModelEvaluations from. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::aiplatform::v1::ModelEvaluation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListModelEvaluations(google::cloud::aiplatform::v1::ListModelEvaluationsRequest, Options)
Lists ModelEvaluations in a Model.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::ListModelEvaluationsRequest
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::ModelEvaluation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetModelEvaluationSlice(std::string const &, Options)
Gets a ModelEvaluationSlice.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. The name of the ModelEvaluationSlice resource. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::aiplatform::v1::ModelEvaluationSlice > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.ModelEvaluationSlice) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetModelEvaluationSlice(google::cloud::aiplatform::v1::GetModelEvaluationSliceRequest const &, Options)
Gets a ModelEvaluationSlice.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::GetModelEvaluationSliceRequest 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 |
StatusOr< google::cloud::aiplatform::v1::ModelEvaluationSlice > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.ModelEvaluationSlice) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListModelEvaluationSlices(std::string const &, Options)
Lists ModelEvaluationSlices in a ModelEvaluation.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices from. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::aiplatform::v1::ModelEvaluationSlice > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListModelEvaluationSlices(google::cloud::aiplatform::v1::ListModelEvaluationSlicesRequest, Options)
Lists ModelEvaluationSlices in a ModelEvaluation.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::aiplatform::v1::ListModelEvaluationSlicesRequest
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::ModelEvaluationSlice > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListLocations(google::cloud::location::ListLocationsRequest, Options)
Lists information about the supported locations for this service.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::location::ListLocationsRequest
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::location::Location > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetLocation(google::cloud::location::GetLocationRequest const &, Options)
Gets information about a location.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::location::GetLocationRequest 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 |
StatusOr< google::cloud::location::Location > |
the result of the RPC. The response message type (google.cloud.location.Location) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &, Options)
Sets the access control policy on the specified resource.
Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
| Parameters | |
|---|---|
| Name | Description |
request |
google::iam::v1::SetIamPolicyRequest 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 |
StatusOr< google::iam::v1::Policy > |
the result of the RPC. The response message type (google.iam.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &, Options)
Gets the access control policy for a resource.
Returns an empty policy if the resource exists and does not have a policy set.
| Parameters | |
|---|---|
| Name | Description |
request |
google::iam::v1::GetIamPolicyRequest 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 |
StatusOr< google::iam::v1::Policy > |
the result of the RPC. The response message type (google.iam.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &, Options)
Returns permissions that a caller has on the specified resource.
If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
| Parameters | |
|---|---|
| Name | Description |
request |
google::iam::v1::TestIamPermissionsRequest 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 |
StatusOr< google::iam::v1::TestIamPermissionsResponse > |
the result of the RPC. The response message type (google.iam.v1.TestIamPermissionsResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListOperations(std::string const &, std::string const &, Options)
Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation's parent resource. |
filter |
std::string const &
The standard list filter. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::longrunning::Operation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListOperations(google::longrunning::ListOperationsRequest, Options)
Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::ListOperationsRequest
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::longrunning::Operation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetOperation(std::string const &, Options)
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.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetOperation(google::longrunning::GetOperationRequest const &, Options)
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.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::GetOperationRequest 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 |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteOperation(std::string const &, Options)
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.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation resource to be deleted. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
DeleteOperation(google::longrunning::DeleteOperationRequest const &, Options)
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.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::DeleteOperationRequest 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 |
Status |
a |
CancelOperation(std::string const &, Options)
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.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation resource to be cancelled. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
CancelOperation(google::longrunning::CancelOperationRequest const &, Options)
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.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::CancelOperationRequest 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 |
Status |
a |
WaitOperation(google::longrunning::WaitOperationRequest const &, Options)
Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state.
If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns google.rpc.Code.UNIMPLEMENTED. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::WaitOperationRequest 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 |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |