Struct google_api_proto::google::cloud::config::v1::config_client::ConfigClient
source · pub struct ConfigClient<T> { /* private fields */ }
Expand description
Infrastructure Manager is a managed service that automates the deployment and management of Google Cloud infrastructure resources.
Implementations§
source§impl<T> ConfigClient<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> ConfigClient<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,
) -> ConfigClient<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_deployments(
&mut self,
request: impl IntoRequest<ListDeploymentsRequest>,
) -> Result<Response<ListDeploymentsResponse>, Status>
pub async fn list_deployments( &mut self, request: impl IntoRequest<ListDeploymentsRequest>, ) -> Result<Response<ListDeploymentsResponse>, Status>
Lists [Deployment][google.cloud.config.v1.Deployment]s in a given project and location.
sourcepub async fn get_deployment(
&mut self,
request: impl IntoRequest<GetDeploymentRequest>,
) -> Result<Response<Deployment>, Status>
pub async fn get_deployment( &mut self, request: impl IntoRequest<GetDeploymentRequest>, ) -> Result<Response<Deployment>, Status>
Gets details about a [Deployment][google.cloud.config.v1.Deployment].
sourcepub async fn create_deployment(
&mut self,
request: impl IntoRequest<CreateDeploymentRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_deployment( &mut self, request: impl IntoRequest<CreateDeploymentRequest>, ) -> Result<Response<Operation>, Status>
Creates a [Deployment][google.cloud.config.v1.Deployment].
sourcepub async fn update_deployment(
&mut self,
request: impl IntoRequest<UpdateDeploymentRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_deployment( &mut self, request: impl IntoRequest<UpdateDeploymentRequest>, ) -> Result<Response<Operation>, Status>
Updates a [Deployment][google.cloud.config.v1.Deployment].
sourcepub async fn delete_deployment(
&mut self,
request: impl IntoRequest<DeleteDeploymentRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_deployment( &mut self, request: impl IntoRequest<DeleteDeploymentRequest>, ) -> Result<Response<Operation>, Status>
Deletes a [Deployment][google.cloud.config.v1.Deployment].
sourcepub async fn list_revisions(
&mut self,
request: impl IntoRequest<ListRevisionsRequest>,
) -> Result<Response<ListRevisionsResponse>, Status>
pub async fn list_revisions( &mut self, request: impl IntoRequest<ListRevisionsRequest>, ) -> Result<Response<ListRevisionsResponse>, Status>
Lists [Revision][google.cloud.config.v1.Revision]s of a deployment.
sourcepub async fn get_revision(
&mut self,
request: impl IntoRequest<GetRevisionRequest>,
) -> Result<Response<Revision>, Status>
pub async fn get_revision( &mut self, request: impl IntoRequest<GetRevisionRequest>, ) -> Result<Response<Revision>, Status>
Gets details about a [Revision][google.cloud.config.v1.Revision].
sourcepub async fn get_resource(
&mut self,
request: impl IntoRequest<GetResourceRequest>,
) -> Result<Response<Resource>, Status>
pub async fn get_resource( &mut self, request: impl IntoRequest<GetResourceRequest>, ) -> Result<Response<Resource>, Status>
Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.
sourcepub async fn list_resources(
&mut self,
request: impl IntoRequest<ListResourcesRequest>,
) -> Result<Response<ListResourcesResponse>, Status>
pub async fn list_resources( &mut self, request: impl IntoRequest<ListResourcesRequest>, ) -> Result<Response<ListResourcesResponse>, Status>
Lists [Resource][google.cloud.config.v1.Resource]s in a given revision.
sourcepub async fn export_deployment_statefile(
&mut self,
request: impl IntoRequest<ExportDeploymentStatefileRequest>,
) -> Result<Response<Statefile>, Status>
pub async fn export_deployment_statefile( &mut self, request: impl IntoRequest<ExportDeploymentStatefileRequest>, ) -> Result<Response<Statefile>, Status>
Exports Terraform state file from a given deployment.
sourcepub async fn export_revision_statefile(
&mut self,
request: impl IntoRequest<ExportRevisionStatefileRequest>,
) -> Result<Response<Statefile>, Status>
pub async fn export_revision_statefile( &mut self, request: impl IntoRequest<ExportRevisionStatefileRequest>, ) -> Result<Response<Statefile>, Status>
Exports Terraform state file from a given revision.
sourcepub async fn import_statefile(
&mut self,
request: impl IntoRequest<ImportStatefileRequest>,
) -> Result<Response<Statefile>, Status>
pub async fn import_statefile( &mut self, request: impl IntoRequest<ImportStatefileRequest>, ) -> Result<Response<Statefile>, Status>
Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.
sourcepub async fn delete_statefile(
&mut self,
request: impl IntoRequest<DeleteStatefileRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_statefile( &mut self, request: impl IntoRequest<DeleteStatefileRequest>, ) -> Result<Response<()>, Status>
Deletes Terraform state file in a given deployment.
sourcepub async fn lock_deployment(
&mut self,
request: impl IntoRequest<LockDeploymentRequest>,
) -> Result<Response<Operation>, Status>
pub async fn lock_deployment( &mut self, request: impl IntoRequest<LockDeploymentRequest>, ) -> Result<Response<Operation>, Status>
Locks a deployment.
sourcepub async fn unlock_deployment(
&mut self,
request: impl IntoRequest<UnlockDeploymentRequest>,
) -> Result<Response<Operation>, Status>
pub async fn unlock_deployment( &mut self, request: impl IntoRequest<UnlockDeploymentRequest>, ) -> Result<Response<Operation>, Status>
Unlocks a locked deployment.
sourcepub async fn export_lock_info(
&mut self,
request: impl IntoRequest<ExportLockInfoRequest>,
) -> Result<Response<LockInfo>, Status>
pub async fn export_lock_info( &mut self, request: impl IntoRequest<ExportLockInfoRequest>, ) -> Result<Response<LockInfo>, Status>
Exports the lock info on a locked deployment.
sourcepub async fn create_preview(
&mut self,
request: impl IntoRequest<CreatePreviewRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_preview( &mut self, request: impl IntoRequest<CreatePreviewRequest>, ) -> Result<Response<Operation>, Status>
Creates a [Preview][google.cloud.config.v1.Preview].
sourcepub async fn get_preview(
&mut self,
request: impl IntoRequest<GetPreviewRequest>,
) -> Result<Response<Preview>, Status>
pub async fn get_preview( &mut self, request: impl IntoRequest<GetPreviewRequest>, ) -> Result<Response<Preview>, Status>
Gets details about a [Preview][google.cloud.config.v1.Preview].
sourcepub async fn list_previews(
&mut self,
request: impl IntoRequest<ListPreviewsRequest>,
) -> Result<Response<ListPreviewsResponse>, Status>
pub async fn list_previews( &mut self, request: impl IntoRequest<ListPreviewsRequest>, ) -> Result<Response<ListPreviewsResponse>, Status>
Lists [Preview][google.cloud.config.v1.Preview]s in a given project and location.
sourcepub async fn delete_preview(
&mut self,
request: impl IntoRequest<DeletePreviewRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_preview( &mut self, request: impl IntoRequest<DeletePreviewRequest>, ) -> Result<Response<Operation>, Status>
Deletes a [Preview][google.cloud.config.v1.Preview].
sourcepub async fn export_preview_result(
&mut self,
request: impl IntoRequest<ExportPreviewResultRequest>,
) -> Result<Response<ExportPreviewResultResponse>, Status>
pub async fn export_preview_result( &mut self, request: impl IntoRequest<ExportPreviewResultRequest>, ) -> Result<Response<ExportPreviewResultResponse>, Status>
Export [Preview][google.cloud.config.v1.Preview] results.
sourcepub async fn list_terraform_versions(
&mut self,
request: impl IntoRequest<ListTerraformVersionsRequest>,
) -> Result<Response<ListTerraformVersionsResponse>, Status>
pub async fn list_terraform_versions( &mut self, request: impl IntoRequest<ListTerraformVersionsRequest>, ) -> Result<Response<ListTerraformVersionsResponse>, Status>
Lists [TerraformVersion][google.cloud.config.v1.TerraformVersion]s in a given project and location.
sourcepub async fn get_terraform_version(
&mut self,
request: impl IntoRequest<GetTerraformVersionRequest>,
) -> Result<Response<TerraformVersion>, Status>
pub async fn get_terraform_version( &mut self, request: impl IntoRequest<GetTerraformVersionRequest>, ) -> Result<Response<TerraformVersion>, Status>
Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].
Trait Implementations§
source§impl<T: Clone> Clone for ConfigClient<T>
impl<T: Clone> Clone for ConfigClient<T>
source§fn clone(&self) -> ConfigClient<T>
fn clone(&self) -> ConfigClient<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 ConfigClient<T>
impl<T> RefUnwindSafe for ConfigClient<T>where
T: RefUnwindSafe,
impl<T> Send for ConfigClient<T>where
T: Send,
impl<T> Sync for ConfigClient<T>where
T: Sync,
impl<T> Unpin for ConfigClient<T>where
T: Unpin,
impl<T> UnwindSafe for ConfigClient<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