Class OsConfigZonalServiceGrpc.OsConfigZonalServiceStub (2.43.0)

public static final class OsConfigZonalServiceGrpc.OsConfigZonalServiceStub extends AbstractAsyncStub<OsConfigZonalServiceGrpc.OsConfigZonalServiceStub>

A stub to allow clients to do asynchronous 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.AbstractAsyncStub > OsConfigZonalServiceGrpc.OsConfigZonalServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected OsConfigZonalServiceGrpc.OsConfigZonalServiceStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
OsConfigZonalServiceGrpc.OsConfigZonalServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createOSPolicyAssignment(CreateOSPolicyAssignmentRequest request, StreamObserver<Operation> responseObserver)

public void createOSPolicyAssignment(CreateOSPolicyAssignmentRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestCreateOSPolicyAssignmentRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest request, StreamObserver<Operation> responseObserver)

public void deleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestDeleteOSPolicyAssignmentRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getInstanceOSPoliciesCompliance(GetInstanceOSPoliciesComplianceRequest request, StreamObserver<InstanceOSPoliciesCompliance> responseObserver) (deprecated)

public void getInstanceOSPoliciesCompliance(GetInstanceOSPoliciesComplianceRequest request, StreamObserver<InstanceOSPoliciesCompliance> responseObserver)

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

Parameters
NameDescription
requestGetInstanceOSPoliciesComplianceRequest
responseObserverio.grpc.stub.StreamObserver<InstanceOSPoliciesCompliance>

getInventory(GetInventoryRequest request, StreamObserver<Inventory> responseObserver)

public void getInventory(GetInventoryRequest request, StreamObserver<Inventory> responseObserver)

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

Parameters
NameDescription
requestGetInventoryRequest
responseObserverio.grpc.stub.StreamObserver<Inventory>

getOSPolicyAssignment(GetOSPolicyAssignmentRequest request, StreamObserver<OSPolicyAssignment> responseObserver)

public void getOSPolicyAssignment(GetOSPolicyAssignmentRequest request, StreamObserver<OSPolicyAssignment> responseObserver)

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.

Parameters
NameDescription
requestGetOSPolicyAssignmentRequest
responseObserverio.grpc.stub.StreamObserver<OSPolicyAssignment>

getOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest request, StreamObserver<OSPolicyAssignmentReport> responseObserver)

public void getOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest request, StreamObserver<OSPolicyAssignmentReport> responseObserver)

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

Parameters
NameDescription
requestGetOSPolicyAssignmentReportRequest
responseObserverio.grpc.stub.StreamObserver<OSPolicyAssignmentReport>

getVulnerabilityReport(GetVulnerabilityReportRequest request, StreamObserver<VulnerabilityReport> responseObserver)

public void getVulnerabilityReport(GetVulnerabilityReportRequest request, StreamObserver<VulnerabilityReport> responseObserver)

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

Parameters
NameDescription
requestGetVulnerabilityReportRequest
responseObserverio.grpc.stub.StreamObserver<VulnerabilityReport>

listInstanceOSPoliciesCompliances(ListInstanceOSPoliciesCompliancesRequest request, StreamObserver<ListInstanceOSPoliciesCompliancesResponse> responseObserver) (deprecated)

public void listInstanceOSPoliciesCompliances(ListInstanceOSPoliciesCompliancesRequest request, StreamObserver<ListInstanceOSPoliciesCompliancesResponse> responseObserver)

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

Parameters
NameDescription
requestListInstanceOSPoliciesCompliancesRequest
responseObserverio.grpc.stub.StreamObserver<ListInstanceOSPoliciesCompliancesResponse>

listInventories(ListInventoriesRequest request, StreamObserver<ListInventoriesResponse> responseObserver)

public void listInventories(ListInventoriesRequest request, StreamObserver<ListInventoriesResponse> responseObserver)

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

Parameters
NameDescription
requestListInventoriesRequest
responseObserverio.grpc.stub.StreamObserver<ListInventoriesResponse>

listOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest request, StreamObserver<ListOSPolicyAssignmentReportsResponse> responseObserver)

public void listOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest request, StreamObserver<ListOSPolicyAssignmentReportsResponse> responseObserver)

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

Parameters
NameDescription
requestListOSPolicyAssignmentReportsRequest
responseObserverio.grpc.stub.StreamObserver<ListOSPolicyAssignmentReportsResponse>

listOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest request, StreamObserver<ListOSPolicyAssignmentRevisionsResponse> responseObserver)

public void listOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest request, StreamObserver<ListOSPolicyAssignmentRevisionsResponse> responseObserver)

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

Parameters
NameDescription
requestListOSPolicyAssignmentRevisionsRequest
responseObserverio.grpc.stub.StreamObserver<ListOSPolicyAssignmentRevisionsResponse>

listOSPolicyAssignments(ListOSPolicyAssignmentsRequest request, StreamObserver<ListOSPolicyAssignmentsResponse> responseObserver)

public void listOSPolicyAssignments(ListOSPolicyAssignmentsRequest request, StreamObserver<ListOSPolicyAssignmentsResponse> responseObserver)

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

Parameters
NameDescription
requestListOSPolicyAssignmentsRequest
responseObserverio.grpc.stub.StreamObserver<ListOSPolicyAssignmentsResponse>

listVulnerabilityReports(ListVulnerabilityReportsRequest request, StreamObserver<ListVulnerabilityReportsResponse> responseObserver)

public void listVulnerabilityReports(ListVulnerabilityReportsRequest request, StreamObserver<ListVulnerabilityReportsResponse> responseObserver)

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

Parameters
NameDescription
requestListVulnerabilityReportsRequest
responseObserverio.grpc.stub.StreamObserver<ListVulnerabilityReportsResponse>

updateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest request, StreamObserver<Operation> responseObserver)

public void updateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestUpdateOSPolicyAssignmentRequest
responseObserverio.grpc.stub.StreamObserver<Operation>