Service describing handlers for resources.
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
AlloyDBAdminClient(AlloyDBAdminClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AlloyDBAdminClient const &
|
AlloyDBAdminClient(AlloyDBAdminClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AlloyDBAdminClient &&
|
AlloyDBAdminClient(std::shared_ptr< AlloyDBAdminConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< AlloyDBAdminConnection >
|
opts |
Options
|
Operators
operator=(AlloyDBAdminClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AlloyDBAdminClient const &
|
Returns | |
---|---|
Type | Description |
AlloyDBAdminClient & |
operator=(AlloyDBAdminClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AlloyDBAdminClient &&
|
Returns | |
---|---|
Type | Description |
AlloyDBAdminClient & |
Functions
ListClusters(std::string const &, Options)
Lists Clusters in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the parent resource. For the required format, see the comment on the Cluster.name field. Additionally, you can perform an aggregated list operation by specifying a value with the following format:
|
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::alloydb::v1::Cluster > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListClusters(google::cloud::alloydb::v1::ListClustersRequest, Options)
Lists Clusters in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::ListClustersRequest
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::alloydb::v1::Cluster > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetCluster(std::string const &, Options)
Gets details of a single Cluster.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the resource. For the required format, see the comment on the Cluster.name field. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::alloydb::v1::Cluster > |
the result of the RPC. The response message type (google.cloud.alloydb.v1.Cluster) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetCluster(google::cloud::alloydb::v1::GetClusterRequest const &, Options)
Gets details of a single Cluster.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::GetClusterRequest 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::alloydb::v1::Cluster > |
the result of the RPC. The response message type (google.cloud.alloydb.v1.Cluster) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateCluster(std::string const &, google::cloud::alloydb::v1::Cluster const &, std::string const &, Options)
Creates a new Cluster in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the parent resource. For the required format, see the comment on the Cluster.name field. |
cluster |
google::cloud::alloydb::v1::Cluster const &
Required. The resource being created |
cluster_id |
std::string const &
Required. ID of the requesting object. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::alloydb::v1::Cluster > > |
A |
CreateCluster(google::cloud::alloydb::v1::CreateClusterRequest const &, Options)
Creates a new Cluster in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::CreateClusterRequest 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::alloydb::v1::Cluster > > |
A |
UpdateCluster(google::cloud::alloydb::v1::Cluster const &, google::protobuf::FieldMask const &, Options)
Updates the parameters of a single Cluster.
Parameters | |
---|---|
Name | Description |
cluster |
google::cloud::alloydb::v1::Cluster const &
Required. The resource being updated |
update_mask |
google::protobuf::FieldMask const &
Optional. Field mask is used to specify the fields to be overwritten in the Cluster resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::alloydb::v1::Cluster > > |
A |
UpdateCluster(google::cloud::alloydb::v1::UpdateClusterRequest const &, Options)
Updates the parameters of a single Cluster.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::UpdateClusterRequest 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::alloydb::v1::Cluster > > |
A |
DeleteCluster(std::string const &, Options)
Deletes a single Cluster.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the resource. For the required format, see the comment on the Cluster.name field. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::alloydb::v1::OperationMetadata > > |
A |
DeleteCluster(google::cloud::alloydb::v1::DeleteClusterRequest const &, Options)
Deletes a single Cluster.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::DeleteClusterRequest 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::alloydb::v1::OperationMetadata > > |
A |
RestoreCluster(google::cloud::alloydb::v1::RestoreClusterRequest const &, Options)
Creates a new Cluster in a given project and location, with a volume restored from the provided source, either a backup ID or a point-in-time and a source cluster.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::RestoreClusterRequest 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::alloydb::v1::Cluster > > |
A |
ListInstances(std::string const &, Options)
Lists Instances in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the parent resource. For the required format, see the comment on the Instance.name field. Additionally, you can perform an aggregated list operation by specifying a value with one of the following formats:
|
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::alloydb::v1::Instance > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListInstances(google::cloud::alloydb::v1::ListInstancesRequest, Options)
Lists Instances in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::ListInstancesRequest
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::alloydb::v1::Instance > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetInstance(std::string const &, Options)
Gets details of a single Instance.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the resource. For the required format, see the comment on the Instance.name field. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::alloydb::v1::Instance > |
the result of the RPC. The response message type (google.cloud.alloydb.v1.Instance) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetInstance(google::cloud::alloydb::v1::GetInstanceRequest const &, Options)
Gets details of a single Instance.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::GetInstanceRequest 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::alloydb::v1::Instance > |
the result of the RPC. The response message type (google.cloud.alloydb.v1.Instance) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateInstance(std::string const &, google::cloud::alloydb::v1::Instance const &, std::string const &, Options)
Creates a new Instance in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the parent resource. For the required format, see the comment on the Instance.name field. |
instance |
google::cloud::alloydb::v1::Instance const &
Required. The resource being created |
instance_id |
std::string const &
Required. ID of the requesting object. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::alloydb::v1::Instance > > |
A |
CreateInstance(google::cloud::alloydb::v1::CreateInstanceRequest const &, Options)
Creates a new Instance in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::CreateInstanceRequest 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::alloydb::v1::Instance > > |
A |
BatchCreateInstances(google::cloud::alloydb::v1::BatchCreateInstancesRequest const &, Options)
Creates new instances under the given project, location and cluster.
There can be only one primary instance in a cluster. If the primary instance exists in the cluster as well as this request, then API will throw an error. The primary instance should exist before any read pool instance is created. If the primary instance is a part of the request payload, then the API will take care of creating instances in the correct order. This method is here to support Google-internal use cases, and is not meant for external customers to consume. Please do not start relying on it; its behavior is subject to change without notice.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::BatchCreateInstancesRequest 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::alloydb::v1::BatchCreateInstancesResponse > > |
A |
UpdateInstance(google::cloud::alloydb::v1::Instance const &, google::protobuf::FieldMask const &, Options)
Updates the parameters of a single Instance.
Parameters | |
---|---|
Name | Description |
instance |
google::cloud::alloydb::v1::Instance const &
Required. The resource being updated |
update_mask |
google::protobuf::FieldMask const &
Optional. Field mask is used to specify the fields to be overwritten in the Instance resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::alloydb::v1::Instance > > |
A |
UpdateInstance(google::cloud::alloydb::v1::UpdateInstanceRequest const &, Options)
Updates the parameters of a single Instance.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::UpdateInstanceRequest 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::alloydb::v1::Instance > > |
A |
DeleteInstance(std::string const &, Options)
Deletes a single Instance.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the resource. For the required format, see the comment on the Instance.name field. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::alloydb::v1::OperationMetadata > > |
A |
DeleteInstance(google::cloud::alloydb::v1::DeleteInstanceRequest const &, Options)
Deletes a single Instance.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::DeleteInstanceRequest 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::alloydb::v1::OperationMetadata > > |
A |
FailoverInstance(std::string const &, Options)
Forces a Failover for a highly available instance.
Failover promotes the HA standby instance as the new primary. Imperative only.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the resource. For the required format, see the comment on the Instance.name field. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::alloydb::v1::Instance > > |
A |
FailoverInstance(google::cloud::alloydb::v1::FailoverInstanceRequest const &, Options)
Forces a Failover for a highly available instance.
Failover promotes the HA standby instance as the new primary. Imperative only.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::FailoverInstanceRequest 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::alloydb::v1::Instance > > |
A |
RestartInstance(std::string const &, Options)
Restart an Instance in a cluster.
Imperative only.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the resource. For the required format, see the comment on the Instance.name field. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::alloydb::v1::Instance > > |
A |
RestartInstance(google::cloud::alloydb::v1::RestartInstanceRequest const &, Options)
Restart an Instance in a cluster.
Imperative only.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::RestartInstanceRequest 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::alloydb::v1::Instance > > |
A |
ListBackups(std::string const &, Options)
Lists Backups in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. Parent value for ListBackupsRequest |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::alloydb::v1::Backup > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListBackups(google::cloud::alloydb::v1::ListBackupsRequest, Options)
Lists Backups in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::ListBackupsRequest
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::alloydb::v1::Backup > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetBackup(std::string const &, Options)
Gets details of a single Backup.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Name of the resource |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::alloydb::v1::Backup > |
the result of the RPC. The response message type (google.cloud.alloydb.v1.Backup) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetBackup(google::cloud::alloydb::v1::GetBackupRequest const &, Options)
Gets details of a single Backup.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::GetBackupRequest 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::alloydb::v1::Backup > |
the result of the RPC. The response message type (google.cloud.alloydb.v1.Backup) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateBackup(std::string const &, google::cloud::alloydb::v1::Backup const &, std::string const &, Options)
Creates a new Backup in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. Value for parent. |
backup |
google::cloud::alloydb::v1::Backup const &
Required. The resource being created |
backup_id |
std::string const &
Required. ID of the requesting object. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::alloydb::v1::Backup > > |
A |
CreateBackup(google::cloud::alloydb::v1::CreateBackupRequest const &, Options)
Creates a new Backup in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::CreateBackupRequest 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::alloydb::v1::Backup > > |
A |
UpdateBackup(google::cloud::alloydb::v1::Backup const &, google::protobuf::FieldMask const &, Options)
Updates the parameters of a single Backup.
Parameters | |
---|---|
Name | Description |
backup |
google::cloud::alloydb::v1::Backup const &
Required. The resource being updated |
update_mask |
google::protobuf::FieldMask const &
Optional. Field mask is used to specify the fields to be overwritten in the Backup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::alloydb::v1::Backup > > |
A |
UpdateBackup(google::cloud::alloydb::v1::UpdateBackupRequest const &, Options)
Updates the parameters of a single Backup.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::UpdateBackupRequest 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::alloydb::v1::Backup > > |
A |
DeleteBackup(std::string const &, Options)
Deletes a single Backup.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Name of the resource. For the required format, see the comment on the Backup.name field. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::alloydb::v1::OperationMetadata > > |
A |
DeleteBackup(google::cloud::alloydb::v1::DeleteBackupRequest const &, Options)
Deletes a single Backup.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::DeleteBackupRequest 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::alloydb::v1::OperationMetadata > > |
A |
ListSupportedDatabaseFlags(std::string const &, Options)
Lists SupportedDatabaseFlags for a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the parent resource. The required format is:
|
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::alloydb::v1::SupportedDatabaseFlag > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListSupportedDatabaseFlags(google::cloud::alloydb::v1::ListSupportedDatabaseFlagsRequest, Options)
Lists SupportedDatabaseFlags for a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::alloydb::v1::ListSupportedDatabaseFlagsRequest
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::alloydb::v1::SupportedDatabaseFlag > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |