Struct google_api_proto::google::cloud::alloydb::v1beta::alloy_db_admin_client::AlloyDbAdminClient
source · pub struct AlloyDbAdminClient<T> { /* private fields */ }
Expand description
Service describing handlers for resources
Implementations§
source§impl<T> AlloyDbAdminClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> AlloyDbAdminClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> AlloyDbAdminClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn list_clusters(
&mut self,
request: impl IntoRequest<ListClustersRequest>,
) -> Result<Response<ListClustersResponse>, Status>
pub async fn list_clusters( &mut self, request: impl IntoRequest<ListClustersRequest>, ) -> Result<Response<ListClustersResponse>, Status>
Lists Clusters in a given project and location.
sourcepub async fn get_cluster(
&mut self,
request: impl IntoRequest<GetClusterRequest>,
) -> Result<Response<Cluster>, Status>
pub async fn get_cluster( &mut self, request: impl IntoRequest<GetClusterRequest>, ) -> Result<Response<Cluster>, Status>
Gets details of a single Cluster.
sourcepub async fn create_cluster(
&mut self,
request: impl IntoRequest<CreateClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_cluster( &mut self, request: impl IntoRequest<CreateClusterRequest>, ) -> Result<Response<Operation>, Status>
Creates a new Cluster in a given project and location.
sourcepub async fn update_cluster(
&mut self,
request: impl IntoRequest<UpdateClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_cluster( &mut self, request: impl IntoRequest<UpdateClusterRequest>, ) -> Result<Response<Operation>, Status>
Updates the parameters of a single Cluster.
sourcepub async fn delete_cluster(
&mut self,
request: impl IntoRequest<DeleteClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_cluster( &mut self, request: impl IntoRequest<DeleteClusterRequest>, ) -> Result<Response<Operation>, Status>
Deletes a single Cluster.
sourcepub async fn promote_cluster(
&mut self,
request: impl IntoRequest<PromoteClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn promote_cluster( &mut self, request: impl IntoRequest<PromoteClusterRequest>, ) -> Result<Response<Operation>, Status>
Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster. Imperative only.
sourcepub async fn restore_cluster(
&mut self,
request: impl IntoRequest<RestoreClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn restore_cluster( &mut self, request: impl IntoRequest<RestoreClusterRequest>, ) -> Result<Response<Operation>, Status>
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.
sourcepub async fn create_secondary_cluster(
&mut self,
request: impl IntoRequest<CreateSecondaryClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_secondary_cluster( &mut self, request: impl IntoRequest<CreateSecondaryClusterRequest>, ) -> Result<Response<Operation>, Status>
Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.
sourcepub async fn list_instances(
&mut self,
request: impl IntoRequest<ListInstancesRequest>,
) -> Result<Response<ListInstancesResponse>, Status>
pub async fn list_instances( &mut self, request: impl IntoRequest<ListInstancesRequest>, ) -> Result<Response<ListInstancesResponse>, Status>
Lists Instances in a given project and location.
sourcepub async fn get_instance(
&mut self,
request: impl IntoRequest<GetInstanceRequest>,
) -> Result<Response<Instance>, Status>
pub async fn get_instance( &mut self, request: impl IntoRequest<GetInstanceRequest>, ) -> Result<Response<Instance>, Status>
Gets details of a single Instance.
sourcepub async fn create_instance(
&mut self,
request: impl IntoRequest<CreateInstanceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_instance( &mut self, request: impl IntoRequest<CreateInstanceRequest>, ) -> Result<Response<Operation>, Status>
Creates a new Instance in a given project and location.
sourcepub async fn create_secondary_instance(
&mut self,
request: impl IntoRequest<CreateSecondaryInstanceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_secondary_instance( &mut self, request: impl IntoRequest<CreateSecondaryInstanceRequest>, ) -> Result<Response<Operation>, Status>
Creates a new SECONDARY Instance in a given project and location.
sourcepub async fn batch_create_instances(
&mut self,
request: impl IntoRequest<BatchCreateInstancesRequest>,
) -> Result<Response<Operation>, Status>
pub async fn batch_create_instances( &mut self, request: impl IntoRequest<BatchCreateInstancesRequest>, ) -> Result<Response<Operation>, Status>
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.
sourcepub async fn update_instance(
&mut self,
request: impl IntoRequest<UpdateInstanceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_instance( &mut self, request: impl IntoRequest<UpdateInstanceRequest>, ) -> Result<Response<Operation>, Status>
Updates the parameters of a single Instance.
sourcepub async fn delete_instance(
&mut self,
request: impl IntoRequest<DeleteInstanceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_instance( &mut self, request: impl IntoRequest<DeleteInstanceRequest>, ) -> Result<Response<Operation>, Status>
Deletes a single Instance.
sourcepub async fn failover_instance(
&mut self,
request: impl IntoRequest<FailoverInstanceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn failover_instance( &mut self, request: impl IntoRequest<FailoverInstanceRequest>, ) -> Result<Response<Operation>, Status>
Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only.
sourcepub async fn inject_fault(
&mut self,
request: impl IntoRequest<InjectFaultRequest>,
) -> Result<Response<Operation>, Status>
pub async fn inject_fault( &mut self, request: impl IntoRequest<InjectFaultRequest>, ) -> Result<Response<Operation>, Status>
Injects fault in an instance. Imperative only.
sourcepub async fn restart_instance(
&mut self,
request: impl IntoRequest<RestartInstanceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn restart_instance( &mut self, request: impl IntoRequest<RestartInstanceRequest>, ) -> Result<Response<Operation>, Status>
Restart an Instance in a cluster. Imperative only.
sourcepub async fn list_backups(
&mut self,
request: impl IntoRequest<ListBackupsRequest>,
) -> Result<Response<ListBackupsResponse>, Status>
pub async fn list_backups( &mut self, request: impl IntoRequest<ListBackupsRequest>, ) -> Result<Response<ListBackupsResponse>, Status>
Lists Backups in a given project and location.
sourcepub async fn get_backup(
&mut self,
request: impl IntoRequest<GetBackupRequest>,
) -> Result<Response<Backup>, Status>
pub async fn get_backup( &mut self, request: impl IntoRequest<GetBackupRequest>, ) -> Result<Response<Backup>, Status>
Gets details of a single Backup.
sourcepub async fn create_backup(
&mut self,
request: impl IntoRequest<CreateBackupRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_backup( &mut self, request: impl IntoRequest<CreateBackupRequest>, ) -> Result<Response<Operation>, Status>
Creates a new Backup in a given project and location.
sourcepub async fn update_backup(
&mut self,
request: impl IntoRequest<UpdateBackupRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_backup( &mut self, request: impl IntoRequest<UpdateBackupRequest>, ) -> Result<Response<Operation>, Status>
Updates the parameters of a single Backup.
sourcepub async fn delete_backup(
&mut self,
request: impl IntoRequest<DeleteBackupRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_backup( &mut self, request: impl IntoRequest<DeleteBackupRequest>, ) -> Result<Response<Operation>, Status>
Deletes a single Backup.
sourcepub async fn list_supported_database_flags(
&mut self,
request: impl IntoRequest<ListSupportedDatabaseFlagsRequest>,
) -> Result<Response<ListSupportedDatabaseFlagsResponse>, Status>
pub async fn list_supported_database_flags( &mut self, request: impl IntoRequest<ListSupportedDatabaseFlagsRequest>, ) -> Result<Response<ListSupportedDatabaseFlagsResponse>, Status>
Lists SupportedDatabaseFlags for a given project and location.
sourcepub async fn generate_client_certificate(
&mut self,
request: impl IntoRequest<GenerateClientCertificateRequest>,
) -> Result<Response<GenerateClientCertificateResponse>, Status>
pub async fn generate_client_certificate( &mut self, request: impl IntoRequest<GenerateClientCertificateRequest>, ) -> Result<Response<GenerateClientCertificateResponse>, Status>
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.
sourcepub async fn get_connection_info(
&mut self,
request: impl IntoRequest<GetConnectionInfoRequest>,
) -> Result<Response<ConnectionInfo>, Status>
pub async fn get_connection_info( &mut self, request: impl IntoRequest<GetConnectionInfoRequest>, ) -> Result<Response<ConnectionInfo>, Status>
Get instance metadata used for a connection.
sourcepub async fn list_users(
&mut self,
request: impl IntoRequest<ListUsersRequest>,
) -> Result<Response<ListUsersResponse>, Status>
pub async fn list_users( &mut self, request: impl IntoRequest<ListUsersRequest>, ) -> Result<Response<ListUsersResponse>, Status>
Lists Users in a given project and location.
sourcepub async fn get_user(
&mut self,
request: impl IntoRequest<GetUserRequest>,
) -> Result<Response<User>, Status>
pub async fn get_user( &mut self, request: impl IntoRequest<GetUserRequest>, ) -> Result<Response<User>, Status>
Gets details of a single User.
sourcepub async fn create_user(
&mut self,
request: impl IntoRequest<CreateUserRequest>,
) -> Result<Response<User>, Status>
pub async fn create_user( &mut self, request: impl IntoRequest<CreateUserRequest>, ) -> Result<Response<User>, Status>
Creates a new User in a given project, location, and cluster.
sourcepub async fn update_user(
&mut self,
request: impl IntoRequest<UpdateUserRequest>,
) -> Result<Response<User>, Status>
pub async fn update_user( &mut self, request: impl IntoRequest<UpdateUserRequest>, ) -> Result<Response<User>, Status>
Updates the parameters of a single User.
sourcepub async fn delete_user(
&mut self,
request: impl IntoRequest<DeleteUserRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_user( &mut self, request: impl IntoRequest<DeleteUserRequest>, ) -> Result<Response<()>, Status>
Deletes a single User.
sourcepub async fn list_databases(
&mut self,
request: impl IntoRequest<ListDatabasesRequest>,
) -> Result<Response<ListDatabasesResponse>, Status>
pub async fn list_databases( &mut self, request: impl IntoRequest<ListDatabasesRequest>, ) -> Result<Response<ListDatabasesResponse>, Status>
Lists Databases in a given project and location.
Trait Implementations§
source§impl<T: Clone> Clone for AlloyDbAdminClient<T>
impl<T: Clone> Clone for AlloyDbAdminClient<T>
source§fn clone(&self) -> AlloyDbAdminClient<T>
fn clone(&self) -> AlloyDbAdminClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for AlloyDbAdminClient<T>
impl<T> RefUnwindSafe for AlloyDbAdminClient<T>where
T: RefUnwindSafe,
impl<T> Send for AlloyDbAdminClient<T>where
T: Send,
impl<T> Sync for AlloyDbAdminClient<T>where
T: Sync,
impl<T> Unpin for AlloyDbAdminClient<T>where
T: Unpin,
impl<T> UnwindSafe for AlloyDbAdminClient<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request