[BindServiceMethod(typeof(OrgPolicyViolationsPreviewService), "BindService")]
public abstract class OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceBase
Reference documentation and code samples for the Policy Simulator v1 API class OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceBase.
Base class for server-side implementations of OrgPolicyViolationsPreviewService
Namespace
Google.Cloud.PolicySimulator.V1Assembly
Google.Cloud.PolicySimulator.V1.dll
Methods
CreateOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest, ServerCallContext)
public virtual Task<Operation> CreateOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest request, ServerCallContext context)
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.
Parameters | |
---|---|
Name | Description |
request |
CreateOrgPolicyViolationsPreviewRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
GetOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest, ServerCallContext)
public virtual Task<OrgPolicyViolationsPreview> GetOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest request, ServerCallContext context)
GetOrgPolicyViolationsPreview gets the specified [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]. Each [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] is available for at least 7 days.
Parameters | |
---|---|
Name | Description |
request |
GetOrgPolicyViolationsPreviewRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskOrgPolicyViolationsPreview |
The response to send back to the client (wrapped by a task). |
ListOrgPolicyViolations(ListOrgPolicyViolationsRequest, ServerCallContext)
public virtual Task<ListOrgPolicyViolationsResponse> ListOrgPolicyViolations(ListOrgPolicyViolationsRequest request, ServerCallContext context)
ListOrgPolicyViolations lists the [OrgPolicyViolations][] that are present in an [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview].
Parameters | |
---|---|
Name | Description |
request |
ListOrgPolicyViolationsRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskListOrgPolicyViolationsResponse |
The response to send back to the client (wrapped by a task). |
ListOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest, ServerCallContext)
public virtual Task<ListOrgPolicyViolationsPreviewsResponse> ListOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest request, ServerCallContext context)
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.
Parameters | |
---|---|
Name | Description |
request |
ListOrgPolicyViolationsPreviewsRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskListOrgPolicyViolationsPreviewsResponse |
The response to send back to the client (wrapped by a task). |