Package com.google.cloud.alloydb.v1alpha
Interface AlloyDBAdminGrpc.AsyncService
-
- All Known Implementing Classes:
AlloyDBAdminGrpc.AlloyDBAdminImplBase
- Enclosing class:
- AlloyDBAdminGrpc
public static interface AlloyDBAdminGrpc.AsyncServiceService describing handlers for resources
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidbatchCreateInstances(BatchCreateInstancesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Creates new instances under the given project, location and cluster.default voidcreateBackup(CreateBackupRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Creates a new Backup in a given project and location.default voidcreateCluster(CreateClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Creates a new Cluster in a given project and location.default voidcreateInstance(CreateInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Creates a new Instance in a given project and location.default voidcreateSecondaryCluster(CreateSecondaryClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.default voidcreateSecondaryInstance(CreateSecondaryInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Creates a new SECONDARY Instance in a given project and location.default voidcreateUser(CreateUserRequest request, io.grpc.stub.StreamObserver<User> responseObserver)Creates a new User in a given project, location, and cluster.default voiddeleteBackup(DeleteBackupRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Deletes a single Backup.default voiddeleteCluster(DeleteClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Deletes a single Cluster.default voiddeleteInstance(DeleteInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Deletes a single Instance.default voiddeleteUser(DeleteUserRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Deletes a single User.default voidfailoverInstance(FailoverInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Forces a Failover for a highly available instance.default voidgenerateClientCertificate(GenerateClientCertificateRequest request, io.grpc.stub.StreamObserver<GenerateClientCertificateResponse> responseObserver)Generate a client certificate signed by a Cluster CA.default voidgetBackup(GetBackupRequest request, io.grpc.stub.StreamObserver<Backup> responseObserver)Gets details of a single Backup.default voidgetCluster(GetClusterRequest request, io.grpc.stub.StreamObserver<Cluster> responseObserver)Gets details of a single Cluster.default voidgetConnectionInfo(GetConnectionInfoRequest request, io.grpc.stub.StreamObserver<ConnectionInfo> responseObserver)Get instance metadata used for a connection.default voidgetInstance(GetInstanceRequest request, io.grpc.stub.StreamObserver<Instance> responseObserver)Gets details of a single Instance.default voidgetUser(GetUserRequest request, io.grpc.stub.StreamObserver<User> responseObserver)Gets details of a single User.default voidinjectFault(InjectFaultRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Injects fault in an instance.default voidlistBackups(ListBackupsRequest request, io.grpc.stub.StreamObserver<ListBackupsResponse> responseObserver)Lists Backups in a given project and location.default voidlistClusters(ListClustersRequest request, io.grpc.stub.StreamObserver<ListClustersResponse> responseObserver)Lists Clusters in a given project and location.default voidlistInstances(ListInstancesRequest request, io.grpc.stub.StreamObserver<ListInstancesResponse> responseObserver)Lists Instances in a given project and location.default voidlistSupportedDatabaseFlags(ListSupportedDatabaseFlagsRequest request, io.grpc.stub.StreamObserver<ListSupportedDatabaseFlagsResponse> responseObserver)Lists SupportedDatabaseFlags for a given project and location.default voidlistUsers(ListUsersRequest request, io.grpc.stub.StreamObserver<ListUsersResponse> responseObserver)Lists Users in a given project and location.default voidpromoteCluster(PromoteClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Promotes a SECONDARY cluster.default voidrestartInstance(RestartInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Restart an Instance in a cluster.default voidrestoreCluster(RestoreClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)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.default voidupdateBackup(UpdateBackupRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Updates the parameters of a single Backup.default voidupdateCluster(UpdateClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Updates the parameters of a single Cluster.default voidupdateInstance(UpdateInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Updates the parameters of a single Instance.default voidupdateUser(UpdateUserRequest request, io.grpc.stub.StreamObserver<User> responseObserver)Updates the parameters of a single User.
-
-
-
Method Detail
-
listClusters
default void listClusters(ListClustersRequest request, io.grpc.stub.StreamObserver<ListClustersResponse> responseObserver)
Lists Clusters in a given project and location.
-
getCluster
default void getCluster(GetClusterRequest request, io.grpc.stub.StreamObserver<Cluster> responseObserver)
Gets details of a single Cluster.
-
createCluster
default void createCluster(CreateClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new Cluster in a given project and location.
-
updateCluster
default void updateCluster(UpdateClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Updates the parameters of a single Cluster.
-
deleteCluster
default void deleteCluster(DeleteClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Deletes a single Cluster.
-
promoteCluster
default void promoteCluster(PromoteClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster. Imperative only.
-
restoreCluster
default void restoreCluster(RestoreClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
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.
-
createSecondaryCluster
default void createSecondaryCluster(CreateSecondaryClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.
-
listInstances
default void listInstances(ListInstancesRequest request, io.grpc.stub.StreamObserver<ListInstancesResponse> responseObserver)
Lists Instances in a given project and location.
-
getInstance
default void getInstance(GetInstanceRequest request, io.grpc.stub.StreamObserver<Instance> responseObserver)
Gets details of a single Instance.
-
createInstance
default void createInstance(CreateInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new Instance in a given project and location.
-
createSecondaryInstance
default void createSecondaryInstance(CreateSecondaryInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new SECONDARY Instance in a given project and location.
-
batchCreateInstances
default void batchCreateInstances(BatchCreateInstancesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
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.
-
updateInstance
default void updateInstance(UpdateInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Updates the parameters of a single Instance.
-
deleteInstance
default void deleteInstance(DeleteInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Deletes a single Instance.
-
failoverInstance
default void failoverInstance(FailoverInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only.
-
injectFault
default void injectFault(InjectFaultRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Injects fault in an instance. Imperative only.
-
restartInstance
default void restartInstance(RestartInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Restart an Instance in a cluster. Imperative only.
-
listBackups
default void listBackups(ListBackupsRequest request, io.grpc.stub.StreamObserver<ListBackupsResponse> responseObserver)
Lists Backups in a given project and location.
-
getBackup
default void getBackup(GetBackupRequest request, io.grpc.stub.StreamObserver<Backup> responseObserver)
Gets details of a single Backup.
-
createBackup
default void createBackup(CreateBackupRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new Backup in a given project and location.
-
updateBackup
default void updateBackup(UpdateBackupRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Updates the parameters of a single Backup.
-
deleteBackup
default void deleteBackup(DeleteBackupRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Deletes a single Backup.
-
listSupportedDatabaseFlags
default void listSupportedDatabaseFlags(ListSupportedDatabaseFlagsRequest request, io.grpc.stub.StreamObserver<ListSupportedDatabaseFlagsResponse> responseObserver)
Lists SupportedDatabaseFlags for a given project and location.
-
generateClientCertificate
default void generateClientCertificate(GenerateClientCertificateRequest request, io.grpc.stub.StreamObserver<GenerateClientCertificateResponse> responseObserver)
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.
-
getConnectionInfo
default void getConnectionInfo(GetConnectionInfoRequest request, io.grpc.stub.StreamObserver<ConnectionInfo> responseObserver)
Get instance metadata used for a connection.
-
listUsers
default void listUsers(ListUsersRequest request, io.grpc.stub.StreamObserver<ListUsersResponse> responseObserver)
Lists Users in a given project and location.
-
getUser
default void getUser(GetUserRequest request, io.grpc.stub.StreamObserver<User> responseObserver)
Gets details of a single User.
-
createUser
default void createUser(CreateUserRequest request, io.grpc.stub.StreamObserver<User> responseObserver)
Creates a new User in a given project, location, and cluster.
-
updateUser
default void updateUser(UpdateUserRequest request, io.grpc.stub.StreamObserver<User> responseObserver)
Updates the parameters of a single User.
-
deleteUser
default void deleteUser(DeleteUserRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a single User.
-
-