Class OsConfigZonalServiceGrpc.OsConfigZonalServiceFutureStub (2.49.0)

public static final class OsConfigZonalServiceGrpc.OsConfigZonalServiceFutureStub extends AbstractFutureStub<OsConfigZonalServiceGrpc.OsConfigZonalServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service OsConfigZonalService.

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.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > OsConfigZonalServiceGrpc.OsConfigZonalServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected OsConfigZonalServiceGrpc.OsConfigZonalServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
OsConfigZonalServiceGrpc.OsConfigZonalServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createOSPolicyAssignment(CreateOSPolicyAssignmentRequest request)

public ListenableFuture<Operation> createOSPolicyAssignment(CreateOSPolicyAssignmentRequest request)

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.

Parameter
Name Description
request CreateOSPolicyAssignmentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest request)

public ListenableFuture<Operation> deleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest request)

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.

Parameter
Name Description
request DeleteOSPolicyAssignmentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

getInstanceOSPoliciesCompliance(GetInstanceOSPoliciesComplianceRequest request) (deprecated)

public ListenableFuture<InstanceOSPoliciesCompliance> getInstanceOSPoliciesCompliance(GetInstanceOSPoliciesComplianceRequest request)

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

Parameter
Name Description
request GetInstanceOSPoliciesComplianceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<InstanceOSPoliciesCompliance>

getInventory(GetInventoryRequest request)

public ListenableFuture<Inventory> getInventory(GetInventoryRequest request)

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

Parameter
Name Description
request GetInventoryRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Inventory>

getOSPolicyAssignment(GetOSPolicyAssignmentRequest request)

public ListenableFuture<OSPolicyAssignment> getOSPolicyAssignment(GetOSPolicyAssignmentRequest request)

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.

Parameter
Name Description
request GetOSPolicyAssignmentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<OSPolicyAssignment>

getOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest request)

public ListenableFuture<OSPolicyAssignmentReport> getOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest request)

Get the OS policy asssignment report for the specified Compute Engine VM instance.

Parameter
Name Description
request GetOSPolicyAssignmentReportRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<OSPolicyAssignmentReport>

getVulnerabilityReport(GetVulnerabilityReportRequest request)

public ListenableFuture<VulnerabilityReport> getVulnerabilityReport(GetVulnerabilityReportRequest request)

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

Parameter
Name Description
request GetVulnerabilityReportRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<VulnerabilityReport>

listInstanceOSPoliciesCompliances(ListInstanceOSPoliciesCompliancesRequest request) (deprecated)

public ListenableFuture<ListInstanceOSPoliciesCompliancesResponse> listInstanceOSPoliciesCompliances(ListInstanceOSPoliciesCompliancesRequest request)

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

Parameter
Name Description
request ListInstanceOSPoliciesCompliancesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListInstanceOSPoliciesCompliancesResponse>

listInventories(ListInventoriesRequest request)

public ListenableFuture<ListInventoriesResponse> listInventories(ListInventoriesRequest request)

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

Parameter
Name Description
request ListInventoriesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListInventoriesResponse>

listOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest request)

public ListenableFuture<ListOSPolicyAssignmentReportsResponse> listOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest request)

List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.

Parameter
Name Description
request ListOSPolicyAssignmentReportsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListOSPolicyAssignmentReportsResponse>

listOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest request)

public ListenableFuture<ListOSPolicyAssignmentRevisionsResponse> listOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest request)

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

Parameter
Name Description
request ListOSPolicyAssignmentRevisionsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListOSPolicyAssignmentRevisionsResponse>

listOSPolicyAssignments(ListOSPolicyAssignmentsRequest request)

public ListenableFuture<ListOSPolicyAssignmentsResponse> listOSPolicyAssignments(ListOSPolicyAssignmentsRequest request)

List the OS policy assignments under the parent resource. For each OS policy assignment, the latest revision is returned.

Parameter
Name Description
request ListOSPolicyAssignmentsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListOSPolicyAssignmentsResponse>

listVulnerabilityReports(ListVulnerabilityReportsRequest request)

public ListenableFuture<ListVulnerabilityReportsResponse> listVulnerabilityReports(ListVulnerabilityReportsRequest request)

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

Parameter
Name Description
request ListVulnerabilityReportsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListVulnerabilityReportsResponse>

updateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest request)

public ListenableFuture<Operation> updateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest request)

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.

Parameter
Name Description
request UpdateOSPolicyAssignmentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>