Interface OrgPolicyViolationsPreviewServiceGrpc.AsyncService

All Known Implementing Classes:
OrgPolicyViolationsPreviewServiceGrpc.OrgPolicyViolationsPreviewServiceImplBase
Enclosing class:
OrgPolicyViolationsPreviewServiceGrpc

public static interface OrgPolicyViolationsPreviewServiceGrpc.AsyncService
 Violations Preview API service for OrgPolicy.
 An
 [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]
 is a preview of the violations that will exist as soon as a proposed
 OrgPolicy change is submitted. To create an
 [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.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.
 
  • Method Details

    • listOrgPolicyViolationsPreviews

      default void listOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest request, io.grpc.stub.StreamObserver<ListOrgPolicyViolationsPreviewsResponse> responseObserver)
       ListOrgPolicyViolationsPreviews lists each
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]
       in an organization. Each
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]
       is available for at least 7 days.
       
    • getOrgPolicyViolationsPreview

      default void getOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest request, io.grpc.stub.StreamObserver<OrgPolicyViolationsPreview> responseObserver)
       GetOrgPolicyViolationsPreview gets the specified
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview].
       Each
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]
       is available for at least 7 days.
       
    • createOrgPolicyViolationsPreview

      default void createOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       CreateOrgPolicyViolationsPreview creates an
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.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.
       
    • listOrgPolicyViolations

      default void listOrgPolicyViolations(ListOrgPolicyViolationsRequest request, io.grpc.stub.StreamObserver<ListOrgPolicyViolationsResponse> responseObserver)
       ListOrgPolicyViolations lists the [OrgPolicyViolations][] that are present
       in an
       [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview].