Struct gapi_grpc::google::cloud::osconfig::v1alpha::os_config_zonal_service_client::OsConfigZonalServiceClient[][src]

pub struct OsConfigZonalServiceClient<T> { /* fields omitted */ }

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

impl OsConfigZonalServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> OsConfigZonalServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn create_os_policy_assignment(
    &mut self,
    request: impl IntoRequest<CreateOsPolicyAssignmentRequest>
) -> Result<Response<Operation>, Status>
[src]

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.

pub async fn update_os_policy_assignment(
    &mut self,
    request: impl IntoRequest<UpdateOsPolicyAssignmentRequest>
) -> Result<Response<Operation>, Status>
[src]

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.

pub async fn get_os_policy_assignment(
    &mut self,
    request: impl IntoRequest<GetOsPolicyAssignmentRequest>
) -> Result<Response<OsPolicyAssignment>, Status>
[src]

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.

pub async fn list_os_policy_assignments(
    &mut self,
    request: impl IntoRequest<ListOsPolicyAssignmentsRequest>
) -> Result<Response<ListOsPolicyAssignmentsResponse>, Status>
[src]

List the OS policy assignments under the parent resource.

For each OS policy assignment, the latest revision is returned.

pub async fn list_os_policy_assignment_revisions(
    &mut self,
    request: impl IntoRequest<ListOsPolicyAssignmentRevisionsRequest>
) -> Result<Response<ListOsPolicyAssignmentRevisionsResponse>, Status>
[src]

List the OS policy assignment revisions for a given OS policy assignment.

pub async fn delete_os_policy_assignment(
    &mut self,
    request: impl IntoRequest<DeleteOsPolicyAssignmentRequest>
) -> Result<Response<Operation>, Status>
[src]

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.

pub async fn get_instance_os_policies_compliance(
    &mut self,
    request: impl IntoRequest<GetInstanceOsPoliciesComplianceRequest>
) -> Result<Response<InstanceOsPoliciesCompliance>, Status>
[src]

Get OS policies compliance data for the specified Compute Engine VM instance.

pub async fn list_instance_os_policies_compliances(
    &mut self,
    request: impl IntoRequest<ListInstanceOsPoliciesCompliancesRequest>
) -> Result<Response<ListInstanceOsPoliciesCompliancesResponse>, Status>
[src]

List OS policies compliance data for all Compute Engine VM instances in the specified zone.

pub async fn get_inventory(
    &mut self,
    request: impl IntoRequest<GetInventoryRequest>
) -> Result<Response<Inventory>, Status>
[src]

Get inventory data for the specified VM instance. If the VM has no associated inventory, the message NOT_FOUND is returned.

pub async fn list_inventories(
    &mut self,
    request: impl IntoRequest<ListInventoriesRequest>
) -> Result<Response<ListInventoriesResponse>, Status>
[src]

List inventory data for all VM instances in the specified zone.

pub async fn get_vulnerability_report(
    &mut self,
    request: impl IntoRequest<GetVulnerabilityReportRequest>
) -> Result<Response<VulnerabilityReport>, Status>
[src]

Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.

pub async fn list_vulnerability_reports(
    &mut self,
    request: impl IntoRequest<ListVulnerabilityReportsRequest>
) -> Result<Response<ListVulnerabilityReportsResponse>, Status>
[src]

List vulnerability reports for all VM instances in the specified zone.

Trait Implementations

impl<T: Clone> Clone for OsConfigZonalServiceClient<T>[src]

impl<T> Debug for OsConfigZonalServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for OsConfigZonalServiceClient<T>

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>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]