A service for managing Vertex AI's machine learning PersistentResource.
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
PersistentResourceServiceClient(PersistentResourceServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
PersistentResourceServiceClient const &
|
PersistentResourceServiceClient(PersistentResourceServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
PersistentResourceServiceClient &&
|
PersistentResourceServiceClient(std::shared_ptr< PersistentResourceServiceConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< PersistentResourceServiceConnection >
|
opts |
Options
|
Operators
operator=(PersistentResourceServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
PersistentResourceServiceClient const &
|
Returns | |
---|---|
Type | Description |
PersistentResourceServiceClient & |
operator=(PersistentResourceServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
PersistentResourceServiceClient &&
|
Returns | |
---|---|
Type | Description |
PersistentResourceServiceClient & |
Functions
CreatePersistentResource(std::string const &, google::cloud::aiplatform::v1::PersistentResource const &, std::string const &, Options)
Creates a PersistentResource.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The resource name of the Location to create the PersistentResource in. Format: |
persistent_resource |
google::cloud::aiplatform::v1::PersistentResource const &
Required. The PersistentResource to create. |
persistent_resource_id |
std::string const &
Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::aiplatform::v1::PersistentResource > > |
A |
CreatePersistentResource(NoAwaitTag, std::string const &, google::cloud::aiplatform::v1::PersistentResource const &, std::string const &, Options)
Creates a PersistentResource.
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 &
|
persistent_resource |
google::cloud::aiplatform::v1::PersistentResource const &
|
persistent_resource_id |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreatePersistentResource(google::cloud::aiplatform::v1::CreatePersistentResourceRequest const &, Options)
Creates a PersistentResource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::aiplatform::v1::CreatePersistentResourceRequest 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::PersistentResource > > |
A |
CreatePersistentResource(NoAwaitTag, google::cloud::aiplatform::v1::CreatePersistentResourceRequest const &, Options)
Creates a PersistentResource.
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::CreatePersistentResourceRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreatePersistentResource(google::longrunning::Operation const &, Options)
Creates a PersistentResource.
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::PersistentResource > > |
GetPersistentResource(std::string const &, Options)
Gets a PersistentResource.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the PersistentResource resource. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::aiplatform::v1::PersistentResource > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.PersistentResource) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetPersistentResource(google::cloud::aiplatform::v1::GetPersistentResourceRequest const &, Options)
Gets a PersistentResource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::aiplatform::v1::GetPersistentResourceRequest 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::PersistentResource > |
the result of the RPC. The response message type (google.cloud.aiplatform.v1.PersistentResource) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListPersistentResources(std::string const &, Options)
Lists PersistentResources in a Location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The resource name of the Location to list the PersistentResources from. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::aiplatform::v1::PersistentResource > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListPersistentResources(google::cloud::aiplatform::v1::ListPersistentResourcesRequest, Options)
Lists PersistentResources in a Location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::aiplatform::v1::ListPersistentResourcesRequest
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::PersistentResource > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
DeletePersistentResource(std::string const &, Options)
Deletes a PersistentResource.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the PersistentResource 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 |
DeletePersistentResource(NoAwaitTag, std::string const &, Options)
Deletes a PersistentResource.
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 > |
DeletePersistentResource(google::cloud::aiplatform::v1::DeletePersistentResourceRequest const &, Options)
Deletes a PersistentResource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::aiplatform::v1::DeletePersistentResourceRequest 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 |
DeletePersistentResource(NoAwaitTag, google::cloud::aiplatform::v1::DeletePersistentResourceRequest const &, Options)
Deletes a PersistentResource.
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::DeletePersistentResourceRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeletePersistentResource(google::longrunning::Operation const &, Options)
Deletes a PersistentResource.
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 > > |
UpdatePersistentResource(google::cloud::aiplatform::v1::PersistentResource const &, google::protobuf::FieldMask const &, Options)
Updates a PersistentResource.
Parameters | |
---|---|
Name | Description |
persistent_resource |
google::cloud::aiplatform::v1::PersistentResource const &
Required. The PersistentResource to update. |
update_mask |
google::protobuf::FieldMask const &
Required. Specify the fields to be overwritten in the PersistentResource by the update method. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::aiplatform::v1::PersistentResource > > |
A |
UpdatePersistentResource(NoAwaitTag, google::cloud::aiplatform::v1::PersistentResource const &, google::protobuf::FieldMask const &, Options)
Updates a PersistentResource.
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
|
persistent_resource |
google::cloud::aiplatform::v1::PersistentResource const &
|
update_mask |
google::protobuf::FieldMask const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdatePersistentResource(google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const &, Options)
Updates a PersistentResource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::aiplatform::v1::UpdatePersistentResourceRequest 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::PersistentResource > > |
A |
UpdatePersistentResource(NoAwaitTag, google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const &, Options)
Updates a PersistentResource.
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::UpdatePersistentResourceRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdatePersistentResource(google::longrunning::Operation const &, Options)
Updates a PersistentResource.
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::PersistentResource > > |
RebootPersistentResource(std::string const &, Options)
Reboots a PersistentResource.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the PersistentResource resource. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::aiplatform::v1::PersistentResource > > |
A |
RebootPersistentResource(NoAwaitTag, std::string const &, Options)
Reboots a PersistentResource.
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 > |
RebootPersistentResource(google::cloud::aiplatform::v1::RebootPersistentResourceRequest const &, Options)
Reboots a PersistentResource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::aiplatform::v1::RebootPersistentResourceRequest 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::PersistentResource > > |
A |
RebootPersistentResource(NoAwaitTag, google::cloud::aiplatform::v1::RebootPersistentResourceRequest const &, Options)
Reboots a PersistentResource.
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::RebootPersistentResourceRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
RebootPersistentResource(google::longrunning::Operation const &, Options)
Reboots a PersistentResource.
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::PersistentResource > > |