public static final class AlloyDBAdminGrpc.AlloyDBAdminBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<AlloyDBAdminGrpc.AlloyDBAdminBlockingV2Stub>
Service describing handlers for resources
| Modifier and Type | Method and Description |
|---|---|
com.google.longrunning.Operation |
batchCreateInstances(BatchCreateInstancesRequest request)
Creates new instances under the given project, location and cluster.
|
protected AlloyDBAdminGrpc.AlloyDBAdminBlockingV2Stub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.longrunning.Operation |
createBackup(CreateBackupRequest request)
Creates a new Backup in a given project and location.
|
com.google.longrunning.Operation |
createCluster(CreateClusterRequest request)
Creates a new Cluster in a given project and location.
|
Database |
createDatabase(CreateDatabaseRequest request)
Creates a new Database in a given project, location, and cluster.
|
com.google.longrunning.Operation |
createInstance(CreateInstanceRequest request)
Creates a new Instance in a given project and location.
|
com.google.longrunning.Operation |
createSecondaryCluster(CreateSecondaryClusterRequest request)
Creates a cluster of type SECONDARY in the given location using
the primary cluster as the source.
|
com.google.longrunning.Operation |
createSecondaryInstance(CreateSecondaryInstanceRequest request)
Creates a new SECONDARY Instance in a given project and location.
|
User |
createUser(CreateUserRequest request)
Creates a new User in a given project, location, and cluster.
|
com.google.longrunning.Operation |
deleteBackup(DeleteBackupRequest request)
Deletes a single Backup.
|
com.google.longrunning.Operation |
deleteCluster(DeleteClusterRequest request)
Deletes a single Cluster.
|
com.google.longrunning.Operation |
deleteInstance(DeleteInstanceRequest request)
Deletes a single Instance.
|
com.google.protobuf.Empty |
deleteUser(DeleteUserRequest request)
Deletes a single User.
|
ExecuteSqlResponse |
executeSql(ExecuteSqlRequest request)
Executes a SQL statement in a database inside an AlloyDB instance.
|
com.google.longrunning.Operation |
exportCluster(ExportClusterRequest request)
Exports data from the cluster.
|
com.google.longrunning.Operation |
failoverInstance(FailoverInstanceRequest request)
Forces a Failover for a highly available instance.
|
GenerateClientCertificateResponse |
generateClientCertificate(GenerateClientCertificateRequest request)
Generate a client certificate signed by a Cluster CA.
|
Backup |
getBackup(GetBackupRequest request)
Gets details of a single Backup.
|
Cluster |
getCluster(GetClusterRequest request)
Gets details of a single Cluster.
|
ConnectionInfo |
getConnectionInfo(GetConnectionInfoRequest request)
Get instance metadata used for a connection.
|
Instance |
getInstance(GetInstanceRequest request)
Gets details of a single Instance.
|
User |
getUser(GetUserRequest request)
Gets details of a single User.
|
com.google.longrunning.Operation |
importCluster(ImportClusterRequest request)
Imports data to the cluster.
|
com.google.longrunning.Operation |
injectFault(InjectFaultRequest request)
Injects fault in an instance.
|
ListBackupsResponse |
listBackups(ListBackupsRequest request)
Lists Backups in a given project and location.
|
ListClustersResponse |
listClusters(ListClustersRequest request)
Lists Clusters in a given project and location.
|
ListDatabasesResponse |
listDatabases(ListDatabasesRequest request)
Lists Databases in a given project and location.
|
ListInstancesResponse |
listInstances(ListInstancesRequest request)
Lists Instances in a given project and location.
|
ListSupportedDatabaseFlagsResponse |
listSupportedDatabaseFlags(ListSupportedDatabaseFlagsRequest request)
Lists SupportedDatabaseFlags for a given project and location.
|
ListUsersResponse |
listUsers(ListUsersRequest request)
Lists Users in a given project and location.
|
com.google.longrunning.Operation |
promoteCluster(PromoteClusterRequest request)
Promotes a SECONDARY cluster.
|
com.google.longrunning.Operation |
restartInstance(RestartInstanceRequest request)
Restart an Instance in a cluster.
|
com.google.longrunning.Operation |
restoreCluster(RestoreClusterRequest request)
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.
|
com.google.longrunning.Operation |
switchoverCluster(SwitchoverClusterRequest request)
Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
|
com.google.longrunning.Operation |
updateBackup(UpdateBackupRequest request)
Updates the parameters of a single Backup.
|
com.google.longrunning.Operation |
updateCluster(UpdateClusterRequest request)
Updates the parameters of a single Cluster.
|
com.google.longrunning.Operation |
updateInstance(UpdateInstanceRequest request)
Updates the parameters of a single Instance.
|
User |
updateUser(UpdateUserRequest request)
Updates the parameters of a single User.
|
com.google.longrunning.Operation |
upgradeCluster(UpgradeClusterRequest request)
Upgrades a single Cluster.
|
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReadyprotected AlloyDBAdminGrpc.AlloyDBAdminBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<AlloyDBAdminGrpc.AlloyDBAdminBlockingV2Stub>public ListClustersResponse listClusters(ListClustersRequest request) throws io.grpc.StatusException
Lists Clusters in a given project and location.
io.grpc.StatusExceptionpublic Cluster getCluster(GetClusterRequest request) throws io.grpc.StatusException
Gets details of a single Cluster.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation createCluster(CreateClusterRequest request) throws io.grpc.StatusException
Creates a new Cluster in a given project and location.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation updateCluster(UpdateClusterRequest request) throws io.grpc.StatusException
Updates the parameters of a single Cluster.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation exportCluster(ExportClusterRequest request) throws io.grpc.StatusException
Exports data from the cluster. Imperative only.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation importCluster(ImportClusterRequest request) throws io.grpc.StatusException
Imports data to the cluster. Imperative only.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation upgradeCluster(UpgradeClusterRequest request) throws io.grpc.StatusException
Upgrades a single Cluster. Imperative only.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation deleteCluster(DeleteClusterRequest request) throws io.grpc.StatusException
Deletes a single Cluster.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation promoteCluster(PromoteClusterRequest request) throws io.grpc.StatusException
Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster. Imperative only.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation switchoverCluster(SwitchoverClusterRequest request) throws io.grpc.StatusException
Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this newly promoted cluster.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation restoreCluster(RestoreClusterRequest request) throws io.grpc.StatusException
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.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation createSecondaryCluster(CreateSecondaryClusterRequest request) throws io.grpc.StatusException
Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.
io.grpc.StatusExceptionpublic ListInstancesResponse listInstances(ListInstancesRequest request) throws io.grpc.StatusException
Lists Instances in a given project and location.
io.grpc.StatusExceptionpublic Instance getInstance(GetInstanceRequest request) throws io.grpc.StatusException
Gets details of a single Instance.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation createInstance(CreateInstanceRequest request) throws io.grpc.StatusException
Creates a new Instance in a given project and location.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation createSecondaryInstance(CreateSecondaryInstanceRequest request) throws io.grpc.StatusException
Creates a new SECONDARY Instance in a given project and location.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation batchCreateInstances(BatchCreateInstancesRequest request) throws io.grpc.StatusException
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.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation updateInstance(UpdateInstanceRequest request) throws io.grpc.StatusException
Updates the parameters of a single Instance.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation deleteInstance(DeleteInstanceRequest request) throws io.grpc.StatusException
Deletes a single Instance.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation failoverInstance(FailoverInstanceRequest request) throws io.grpc.StatusException
Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation injectFault(InjectFaultRequest request) throws io.grpc.StatusException
Injects fault in an instance. Imperative only.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation restartInstance(RestartInstanceRequest request) throws io.grpc.StatusException
Restart an Instance in a cluster. Imperative only.
io.grpc.StatusExceptionpublic ExecuteSqlResponse executeSql(ExecuteSqlRequest request) throws io.grpc.StatusException
Executes a SQL statement in a database inside an AlloyDB instance.
io.grpc.StatusExceptionpublic ListBackupsResponse listBackups(ListBackupsRequest request) throws io.grpc.StatusException
Lists Backups in a given project and location.
io.grpc.StatusExceptionpublic Backup getBackup(GetBackupRequest request) throws io.grpc.StatusException
Gets details of a single Backup.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation createBackup(CreateBackupRequest request) throws io.grpc.StatusException
Creates a new Backup in a given project and location.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation updateBackup(UpdateBackupRequest request) throws io.grpc.StatusException
Updates the parameters of a single Backup.
io.grpc.StatusExceptionpublic com.google.longrunning.Operation deleteBackup(DeleteBackupRequest request) throws io.grpc.StatusException
Deletes a single Backup.
io.grpc.StatusExceptionpublic ListSupportedDatabaseFlagsResponse listSupportedDatabaseFlags(ListSupportedDatabaseFlagsRequest request) throws io.grpc.StatusException
Lists SupportedDatabaseFlags for a given project and location.
io.grpc.StatusExceptionpublic GenerateClientCertificateResponse generateClientCertificate(GenerateClientCertificateRequest request) throws io.grpc.StatusException
Generate a client certificate signed by a Cluster CA. The sole purpose of this endpoint is to support AlloyDB connectors and the Auth Proxy client. The endpoint's behavior is subject to change without notice, so do not rely on its behavior remaining constant. Future changes will not break AlloyDB connectors or the Auth Proxy client.
io.grpc.StatusExceptionpublic ConnectionInfo getConnectionInfo(GetConnectionInfoRequest request) throws io.grpc.StatusException
Get instance metadata used for a connection.
io.grpc.StatusExceptionpublic ListUsersResponse listUsers(ListUsersRequest request) throws io.grpc.StatusException
Lists Users in a given project and location.
io.grpc.StatusExceptionpublic User getUser(GetUserRequest request) throws io.grpc.StatusException
Gets details of a single User.
io.grpc.StatusExceptionpublic User createUser(CreateUserRequest request) throws io.grpc.StatusException
Creates a new User in a given project, location, and cluster.
io.grpc.StatusExceptionpublic User updateUser(UpdateUserRequest request) throws io.grpc.StatusException
Updates the parameters of a single User.
io.grpc.StatusExceptionpublic com.google.protobuf.Empty deleteUser(DeleteUserRequest request) throws io.grpc.StatusException
Deletes a single User.
io.grpc.StatusExceptionpublic ListDatabasesResponse listDatabases(ListDatabasesRequest request) throws io.grpc.StatusException
Lists Databases in a given project and location.
io.grpc.StatusExceptionpublic Database createDatabase(CreateDatabaseRequest request) throws io.grpc.StatusException
Creates a new Database in a given project, location, and cluster.
io.grpc.StatusExceptionCopyright © 2026 Google LLC. All rights reserved.