Struct googapis::google::cloud::filestore::v1beta1::cloud_filestore_manager_client::CloudFilestoreManagerClient [−][src]
pub struct CloudFilestoreManagerClient<T> { /* fields omitted */ }
Expand description
Configures and manages Cloud Filestore resources.
Cloud Filestore Manager v1beta1.
The file.googleapis.com
service implements the Cloud Filestore API and
defines the following model for managing resources:
- The service works with a collection of cloud projects, named:
/projects/*
- Each project has a collection of available locations, named:
/locations/*
- Each location has a collection of instances and backups, named:
/instances/*
and/backups/*
respectively. - As such, Cloud Filestore instances are resources of the form:
/projects/{project_id}/locations/{location_id}/instances/{instance_id}
backups are resources of the form:/projects/{project_id}/locations/{location_id}/backup/{backup_id}
Note that location_id can represent a GCP zone
or region
depending on the
resource.
for example:
A zonal Filestore instance:
projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer
A regional Filestore instance:projects/my-project/locations/us-central1/instances/my-enterprise-filer
Implementations
impl<T> CloudFilestoreManagerClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> CloudFilestoreManagerClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> CloudFilestoreManagerClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub 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 all instances in a project for either a specified location or for all locations.
pub 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 the details of a specific instance.
pub 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 an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).
pub 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 settings of a specific instance.
pub async fn restore_instance(
&mut self,
request: impl IntoRequest<RestoreInstanceRequest>
) -> Result<Response<Operation>, Status>
pub async fn restore_instance(
&mut self,
request: impl IntoRequest<RestoreInstanceRequest>
) -> Result<Response<Operation>, Status>
Restores an existing instance’s file share from a backup.
The capacity of the instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).
pub 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 an instance.
pub 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 all backups in a project for either a specified location or for all locations.
pub 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 the details of a specific backup.
pub 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 backup.
pub 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 backup.
pub 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 settings of a specific backup.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for CloudFilestoreManagerClient<T> where
T: RefUnwindSafe,
impl<T> Send for CloudFilestoreManagerClient<T> where
T: Send,
impl<T> Sync for CloudFilestoreManagerClient<T> where
T: Sync,
impl<T> Unpin for CloudFilestoreManagerClient<T> where
T: Unpin,
impl<T> UnwindSafe for CloudFilestoreManagerClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more