Struct google_api_proto::google::cloud::assuredworkloads::v1beta1::assured_workloads_service_client::AssuredWorkloadsServiceClient
source · pub struct AssuredWorkloadsServiceClient<T> { /* private fields */ }
Expand description
Service to manage AssuredWorkloads.
Implementations§
source§impl<T> AssuredWorkloadsServiceClient<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> AssuredWorkloadsServiceClient<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
) -> AssuredWorkloadsServiceClient<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 create_workload(
&mut self,
request: impl IntoRequest<CreateWorkloadRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_workload( &mut self, request: impl IntoRequest<CreateWorkloadRequest> ) -> Result<Response<Operation>, Status>
Creates Assured Workload.
sourcepub async fn update_workload(
&mut self,
request: impl IntoRequest<UpdateWorkloadRequest>
) -> Result<Response<Workload>, Status>
pub async fn update_workload( &mut self, request: impl IntoRequest<UpdateWorkloadRequest> ) -> Result<Response<Workload>, Status>
Updates an existing workload. Currently allows updating of workload display_name and labels. For force updates don’t set etag field in the Workload. Only one update operation per workload can be in progress.
sourcepub async fn restrict_allowed_resources(
&mut self,
request: impl IntoRequest<RestrictAllowedResourcesRequest>
) -> Result<Response<RestrictAllowedResourcesResponse>, Status>
pub async fn restrict_allowed_resources( &mut self, request: impl IntoRequest<RestrictAllowedResourcesRequest> ) -> Result<Response<RestrictAllowedResourcesResponse>, Status>
Restrict the list of resources allowed in the Workload environment. The current list of allowed products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In addition to assuredworkloads.workload.update permission, the user should also have orgpolicy.policy.set permission on the folder resource to use this functionality.
sourcepub async fn delete_workload(
&mut self,
request: impl IntoRequest<DeleteWorkloadRequest>
) -> Result<Response<()>, Status>
pub async fn delete_workload( &mut self, request: impl IntoRequest<DeleteWorkloadRequest> ) -> Result<Response<()>, Status>
Deletes the workload. Make sure that workload’s direct children are already in a deleted state, otherwise the request will fail with a FAILED_PRECONDITION error. In addition to assuredworkloads.workload.delete permission, the user should also have orgpolicy.policy.set permission on the deleted folder to remove Assured Workloads OrgPolicies.
sourcepub async fn get_workload(
&mut self,
request: impl IntoRequest<GetWorkloadRequest>
) -> Result<Response<Workload>, Status>
pub async fn get_workload( &mut self, request: impl IntoRequest<GetWorkloadRequest> ) -> Result<Response<Workload>, Status>
Gets Assured Workload associated with a CRM Node
sourcepub async fn analyze_workload_move(
&mut self,
request: impl IntoRequest<AnalyzeWorkloadMoveRequest>
) -> Result<Response<AnalyzeWorkloadMoveResponse>, Status>
pub async fn analyze_workload_move( &mut self, request: impl IntoRequest<AnalyzeWorkloadMoveRequest> ) -> Result<Response<AnalyzeWorkloadMoveResponse>, Status>
Analyze if the source Assured Workloads can be moved to the target Assured Workload
sourcepub async fn list_workloads(
&mut self,
request: impl IntoRequest<ListWorkloadsRequest>
) -> Result<Response<ListWorkloadsResponse>, Status>
pub async fn list_workloads( &mut self, request: impl IntoRequest<ListWorkloadsRequest> ) -> Result<Response<ListWorkloadsResponse>, Status>
Lists Assured Workloads under a CRM Node.
Trait Implementations§
source§impl<T: Clone> Clone for AssuredWorkloadsServiceClient<T>
impl<T: Clone> Clone for AssuredWorkloadsServiceClient<T>
source§fn clone(&self) -> AssuredWorkloadsServiceClient<T>
fn clone(&self) -> AssuredWorkloadsServiceClient<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 AssuredWorkloadsServiceClient<T>
impl<T> RefUnwindSafe for AssuredWorkloadsServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for AssuredWorkloadsServiceClient<T>where
T: Send,
impl<T> Sync for AssuredWorkloadsServiceClient<T>where
T: Sync,
impl<T> Unpin for AssuredWorkloadsServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for AssuredWorkloadsServiceClient<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