Struct google_api_proto::google::cloud::osconfig::v1::os_config_zonal_service_client::OsConfigZonalServiceClient
source · pub struct OsConfigZonalServiceClient<T> { /* private fields */ }
Expand description
Zonal OS Config API
The OS Config service is the server-side component that allows users to manage package installations and patch jobs for Compute Engine VM instances.
Implementations§
source§impl<T> OsConfigZonalServiceClient<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> OsConfigZonalServiceClient<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,
) -> OsConfigZonalServiceClient<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_os_policy_assignment(
&mut self,
request: impl IntoRequest<CreateOsPolicyAssignmentRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_os_policy_assignment( &mut self, request: impl IntoRequest<CreateOsPolicyAssignmentRequest>, ) -> Result<Response<Operation>, Status>
Create an OS policy assignment.
This method also creates the first revision of the OS policy assignment.
This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO.
For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
sourcepub async fn update_os_policy_assignment(
&mut self,
request: impl IntoRequest<UpdateOsPolicyAssignmentRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_os_policy_assignment( &mut self, request: impl IntoRequest<UpdateOsPolicyAssignmentRequest>, ) -> Result<Response<Operation>, Status>
Update an existing OS policy assignment.
This method creates a new revision of the OS policy assignment.
This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO.
For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
sourcepub async fn get_os_policy_assignment(
&mut self,
request: impl IntoRequest<GetOsPolicyAssignmentRequest>,
) -> Result<Response<OsPolicyAssignment>, Status>
pub async fn get_os_policy_assignment( &mut self, request: impl IntoRequest<GetOsPolicyAssignmentRequest>, ) -> Result<Response<OsPolicyAssignment>, Status>
Retrieve an existing OS policy assignment.
This method always returns the latest revision. In order to retrieve a
previous revision of the assignment, also provide the revision ID in the
name
parameter.
sourcepub async fn list_os_policy_assignments(
&mut self,
request: impl IntoRequest<ListOsPolicyAssignmentsRequest>,
) -> Result<Response<ListOsPolicyAssignmentsResponse>, Status>
pub async fn list_os_policy_assignments( &mut self, request: impl IntoRequest<ListOsPolicyAssignmentsRequest>, ) -> Result<Response<ListOsPolicyAssignmentsResponse>, Status>
List the OS policy assignments under the parent resource.
For each OS policy assignment, the latest revision is returned.
sourcepub async fn list_os_policy_assignment_revisions(
&mut self,
request: impl IntoRequest<ListOsPolicyAssignmentRevisionsRequest>,
) -> Result<Response<ListOsPolicyAssignmentRevisionsResponse>, Status>
pub async fn list_os_policy_assignment_revisions( &mut self, request: impl IntoRequest<ListOsPolicyAssignmentRevisionsRequest>, ) -> Result<Response<ListOsPolicyAssignmentRevisionsResponse>, Status>
List the OS policy assignment revisions for a given OS policy assignment.
sourcepub async fn delete_os_policy_assignment(
&mut self,
request: impl IntoRequest<DeleteOsPolicyAssignmentRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_os_policy_assignment( &mut self, request: impl IntoRequest<DeleteOsPolicyAssignmentRequest>, ) -> Result<Response<Operation>, Status>
Delete the OS policy assignment.
This method creates a new revision of the OS policy assignment.
This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO.
If the LRO completes and is not cancelled, all revisions associated with the OS policy assignment are deleted.
For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
sourcepub async fn get_os_policy_assignment_report(
&mut self,
request: impl IntoRequest<GetOsPolicyAssignmentReportRequest>,
) -> Result<Response<OsPolicyAssignmentReport>, Status>
pub async fn get_os_policy_assignment_report( &mut self, request: impl IntoRequest<GetOsPolicyAssignmentReportRequest>, ) -> Result<Response<OsPolicyAssignmentReport>, Status>
Get the OS policy asssignment report for the specified Compute Engine VM instance.
sourcepub async fn list_os_policy_assignment_reports(
&mut self,
request: impl IntoRequest<ListOsPolicyAssignmentReportsRequest>,
) -> Result<Response<ListOsPolicyAssignmentReportsResponse>, Status>
pub async fn list_os_policy_assignment_reports( &mut self, request: impl IntoRequest<ListOsPolicyAssignmentReportsRequest>, ) -> Result<Response<ListOsPolicyAssignmentReportsResponse>, Status>
List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.
sourcepub async fn get_inventory(
&mut self,
request: impl IntoRequest<GetInventoryRequest>,
) -> Result<Response<Inventory>, Status>
pub async fn get_inventory( &mut self, request: impl IntoRequest<GetInventoryRequest>, ) -> Result<Response<Inventory>, Status>
Get inventory data for the specified VM instance. If the VM has no
associated inventory, the message NOT_FOUND
is returned.
sourcepub async fn list_inventories(
&mut self,
request: impl IntoRequest<ListInventoriesRequest>,
) -> Result<Response<ListInventoriesResponse>, Status>
pub async fn list_inventories( &mut self, request: impl IntoRequest<ListInventoriesRequest>, ) -> Result<Response<ListInventoriesResponse>, Status>
List inventory data for all VM instances in the specified zone.
sourcepub async fn get_vulnerability_report(
&mut self,
request: impl IntoRequest<GetVulnerabilityReportRequest>,
) -> Result<Response<VulnerabilityReport>, Status>
pub async fn get_vulnerability_report( &mut self, request: impl IntoRequest<GetVulnerabilityReportRequest>, ) -> Result<Response<VulnerabilityReport>, Status>
Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.
sourcepub async fn list_vulnerability_reports(
&mut self,
request: impl IntoRequest<ListVulnerabilityReportsRequest>,
) -> Result<Response<ListVulnerabilityReportsResponse>, Status>
pub async fn list_vulnerability_reports( &mut self, request: impl IntoRequest<ListVulnerabilityReportsRequest>, ) -> Result<Response<ListVulnerabilityReportsResponse>, Status>
List vulnerability reports for all VM instances in the specified zone.
Trait Implementations§
source§impl<T: Clone> Clone for OsConfigZonalServiceClient<T>
impl<T: Clone> Clone for OsConfigZonalServiceClient<T>
source§fn clone(&self) -> OsConfigZonalServiceClient<T>
fn clone(&self) -> OsConfigZonalServiceClient<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 OsConfigZonalServiceClient<T>
impl<T> RefUnwindSafe for OsConfigZonalServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for OsConfigZonalServiceClient<T>where
T: Send,
impl<T> Sync for OsConfigZonalServiceClient<T>where
T: Sync,
impl<T> Unpin for OsConfigZonalServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for OsConfigZonalServiceClient<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