Class OrgPolicyViolationsPreviewServiceGrpc.OrgPolicyViolationsPreviewServiceFutureStub (0.49.0)

public static final class OrgPolicyViolationsPreviewServiceGrpc.OrgPolicyViolationsPreviewServiceFutureStub extends AbstractFutureStub<OrgPolicyViolationsPreviewServiceGrpc.OrgPolicyViolationsPreviewServiceFutureStub>

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

Violations Preview API service for OrgPolicy. An OrgPolicyViolationsPreview is a preview of the violations that will exist as soon as a proposed OrgPolicy change is submitted. To create an OrgPolicyViolationsPreview, the API user specifies the changes they wish to make and requests the generation of a preview via [GenerateViolationsPreview][]. the OrgPolicy Simulator service then scans the API user's currently existing resources to determine these resources violate the newly set OrgPolicy.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > OrgPolicyViolationsPreviewServiceGrpc.OrgPolicyViolationsPreviewServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

createOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest request)

public ListenableFuture<Operation> createOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest request)

CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the proposed changes in the provided [OrgPolicyViolationsPreview.OrgPolicyOverlay][]. The changes to OrgPolicy are specified by this OrgPolicyOverlay. The resources to scan are inferred from these specified changes.

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

getOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest request)

public ListenableFuture<OrgPolicyViolationsPreview> getOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest request)

GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview. Each OrgPolicyViolationsPreview is available for at least 7 days.

Parameter
Name Description
request GetOrgPolicyViolationsPreviewRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<OrgPolicyViolationsPreview>

listOrgPolicyViolations(ListOrgPolicyViolationsRequest request)

public ListenableFuture<ListOrgPolicyViolationsResponse> listOrgPolicyViolations(ListOrgPolicyViolationsRequest request)

ListOrgPolicyViolations lists the [OrgPolicyViolations][] that are present in an OrgPolicyViolationsPreview.

Parameter
Name Description
request ListOrgPolicyViolationsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListOrgPolicyViolationsResponse>

listOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest request)

public ListenableFuture<ListOrgPolicyViolationsPreviewsResponse> listOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest request)

ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization. Each OrgPolicyViolationsPreview is available for at least 7 days.

Parameter
Name Description
request ListOrgPolicyViolationsPreviewsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListOrgPolicyViolationsPreviewsResponse>