Policy Simulator v1 API - Class OrgPolicyViolationsPreviewService (1.3.0)

public static class OrgPolicyViolationsPreviewService

Reference documentation and code samples for the Policy Simulator v1 API class OrgPolicyViolationsPreviewService.

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.

Inheritance

object > OrgPolicyViolationsPreviewService

Namespace

Google.Cloud.PolicySimulator.V1

Assembly

Google.Cloud.PolicySimulator.V1.dll

Methods

BindService(OrgPolicyViolationsPreviewServiceBase)

public static ServerServiceDefinition BindService(OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceBase serviceImpl)

Creates service definition that can be registered with a server

Parameter
Name Description
serviceImpl OrgPolicyViolationsPreviewServiceOrgPolicyViolationsPreviewServiceBase

An object implementing the server-side handling logic.

Returns
Type Description
ServerServiceDefinition

BindService(ServiceBinderBase, OrgPolicyViolationsPreviewServiceBase)

public static void BindService(ServiceBinderBase serviceBinder, OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceBase serviceImpl)

Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. Note: this method is part of an experimental API that can change or be removed without any prior notice.

Parameters
Name Description
serviceBinder ServiceBinderBase

Service methods will be bound by calling AddMethod on this object.

serviceImpl OrgPolicyViolationsPreviewServiceOrgPolicyViolationsPreviewServiceBase

An object implementing the server-side handling logic.