Class OsConfigZonalServiceGrpc.OsConfigZonalServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<OsConfigZonalServiceGrpc.OsConfigZonalServiceBlockingV2Stub>
com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceGrpc.OsConfigZonalServiceBlockingV2Stub
- Enclosing class:
- OsConfigZonalServiceGrpc
public static final class OsConfigZonalServiceGrpc.OsConfigZonalServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<OsConfigZonalServiceGrpc.OsConfigZonalServiceBlockingV2Stub>
A stub to allow clients to do synchronous 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Create an OS policy assignment.Delete the OS policy assignment.Deprecated.getInventory(GetInventoryRequest request) Get inventory data for the specified VM instance.Retrieve an existing OS policy assignment.Get the OS policy asssignment report for the specified Compute Engine VM instance.Gets the vulnerability report for the specified VM instance.Deprecated.listInventories(ListInventoriesRequest request) List inventory data for all VM instances in the specified zone.List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.List the OS policy assignment revisions for a given OS policy assignment.List the OS policy assignments under the parent resource.List vulnerability reports for all VM instances in the specified zone.Update an existing OS policy assignment.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected OsConfigZonalServiceGrpc.OsConfigZonalServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<OsConfigZonalServiceGrpc.OsConfigZonalServiceBlockingV2Stub>
-
createOSPolicyAssignment
public Operation createOSPolicyAssignment(CreateOSPolicyAssignmentRequest request) throws io.grpc.StatusException 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](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).
- Throws:
io.grpc.StatusException
-
updateOSPolicyAssignment
public Operation updateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest request) throws io.grpc.StatusException 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](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).
- Throws:
io.grpc.StatusException
-
getOSPolicyAssignment
public OSPolicyAssignment getOSPolicyAssignment(GetOSPolicyAssignmentRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
listOSPolicyAssignments
public ListOSPolicyAssignmentsResponse listOSPolicyAssignments(ListOSPolicyAssignmentsRequest request) throws io.grpc.StatusException List the OS policy assignments under the parent resource. For each OS policy assignment, the latest revision is returned.
- Throws:
io.grpc.StatusException
-
listOSPolicyAssignmentRevisions
public ListOSPolicyAssignmentRevisionsResponse listOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest request) throws io.grpc.StatusException List the OS policy assignment revisions for a given OS policy assignment.
- Throws:
io.grpc.StatusException
-
deleteOSPolicyAssignment
public Operation deleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest request) throws io.grpc.StatusException 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](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).
- Throws:
io.grpc.StatusException
-
getInstanceOSPoliciesCompliance
@Deprecated public InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance(GetInstanceOSPoliciesComplianceRequest request) throws io.grpc.StatusException Deprecated.Get OS policies compliance data for the specified Compute Engine VM instance.
- Throws:
io.grpc.StatusException
-
listInstanceOSPoliciesCompliances
@Deprecated public ListInstanceOSPoliciesCompliancesResponse listInstanceOSPoliciesCompliances(ListInstanceOSPoliciesCompliancesRequest request) throws io.grpc.StatusException Deprecated.List OS policies compliance data for all Compute Engine VM instances in the specified zone.
- Throws:
io.grpc.StatusException
-
getOSPolicyAssignmentReport
public OSPolicyAssignmentReport getOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest request) throws io.grpc.StatusException Get the OS policy asssignment report for the specified Compute Engine VM instance.
- Throws:
io.grpc.StatusException
-
listOSPolicyAssignmentReports
public ListOSPolicyAssignmentReportsResponse listOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest request) throws io.grpc.StatusException List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.
- Throws:
io.grpc.StatusException
-
getInventory
Get inventory data for the specified VM instance. If the VM has no associated inventory, the message `NOT_FOUND` is returned.
- Throws:
io.grpc.StatusException
-
listInventories
public ListInventoriesResponse listInventories(ListInventoriesRequest request) throws io.grpc.StatusException List inventory data for all VM instances in the specified zone.
- Throws:
io.grpc.StatusException
-
getVulnerabilityReport
public VulnerabilityReport getVulnerabilityReport(GetVulnerabilityReportRequest request) throws io.grpc.StatusException Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.
- Throws:
io.grpc.StatusException
-
listVulnerabilityReports
public ListVulnerabilityReportsResponse listVulnerabilityReports(ListVulnerabilityReportsRequest request) throws io.grpc.StatusException List vulnerability reports for all VM instances in the specified zone.
- Throws:
io.grpc.StatusException
-