public class OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient : ClientBase<OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient>
Reference documentation and code samples for the Policy Simulator v1 API class OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient.
Client for OrgPolicyViolationsPreviewService
Inheritance
object > ClientBase > ClientBaseOrgPolicyViolationsPreviewServiceOrgPolicyViolationsPreviewServiceClient > OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClientNamespace
Google.Cloud.PolicySimulator.V1Assembly
Google.Cloud.PolicySimulator.V1.dll
Constructors
OrgPolicyViolationsPreviewServiceClient()
protected OrgPolicyViolationsPreviewServiceClient()
Protected parameterless constructor to allow creation of test doubles.
OrgPolicyViolationsPreviewServiceClient(CallInvoker)
public OrgPolicyViolationsPreviewServiceClient(CallInvoker callInvoker)
Creates a new client for OrgPolicyViolationsPreviewService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker |
CallInvoker The callInvoker to use to make remote calls. |
OrgPolicyViolationsPreviewServiceClient(ChannelBase)
public OrgPolicyViolationsPreviewServiceClient(ChannelBase channel)
Creates a new client for OrgPolicyViolationsPreviewService
Parameter | |
---|---|
Name | Description |
channel |
ChannelBase The channel to use to make remote calls. |
OrgPolicyViolationsPreviewServiceClient(ClientBaseConfiguration)
protected OrgPolicyViolationsPreviewServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration The client configuration. |
Methods
CreateOperationsClient()
public virtual Operations.OperationsClient CreateOperationsClient()
Creates a new instance of Operations.OperationsClient using the same call invoker as this client.
Returns | |
---|---|
Type | Description |
OperationsOperationsClient |
A new Operations client for the same target as this client. |
CreateOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest, CallOptions)
public virtual Operation CreateOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest request, CallOptions options)
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 to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation |
The response received from the server. |
CreateOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation CreateOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation |
The response received from the server. |
CreateOrgPolicyViolationsPreviewAsync(CreateOrgPolicyViolationsPreviewRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> CreateOrgPolicyViolationsPreviewAsync(CreateOrgPolicyViolationsPreviewRequest request, CallOptions options)
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 to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation |
The call object. |
CreateOrgPolicyViolationsPreviewAsync(CreateOrgPolicyViolationsPreviewRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> CreateOrgPolicyViolationsPreviewAsync(CreateOrgPolicyViolationsPreviewRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation |
The call object. |
GetOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest, CallOptions)
public virtual OrgPolicyViolationsPreview GetOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest request, CallOptions options)
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 to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
OrgPolicyViolationsPreview |
The response received from the server. |
GetOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest, Metadata, DateTime?, CancellationToken)
public virtual OrgPolicyViolationsPreview GetOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
OrgPolicyViolationsPreview |
The response received from the server. |
GetOrgPolicyViolationsPreviewAsync(GetOrgPolicyViolationsPreviewRequest, CallOptions)
public virtual AsyncUnaryCall<OrgPolicyViolationsPreview> GetOrgPolicyViolationsPreviewAsync(GetOrgPolicyViolationsPreviewRequest request, CallOptions options)
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 to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOrgPolicyViolationsPreview |
The call object. |
GetOrgPolicyViolationsPreviewAsync(GetOrgPolicyViolationsPreviewRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<OrgPolicyViolationsPreview> GetOrgPolicyViolationsPreviewAsync(GetOrgPolicyViolationsPreviewRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOrgPolicyViolationsPreview |
The call object. |
ListOrgPolicyViolations(ListOrgPolicyViolationsRequest, CallOptions)
public virtual ListOrgPolicyViolationsResponse ListOrgPolicyViolations(ListOrgPolicyViolationsRequest request, CallOptions options)
ListOrgPolicyViolations lists the [OrgPolicyViolations][] that are present in an [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview].
Parameters | |
---|---|
Name | Description |
request |
ListOrgPolicyViolationsRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListOrgPolicyViolationsResponse |
The response received from the server. |
ListOrgPolicyViolations(ListOrgPolicyViolationsRequest, Metadata, DateTime?, CancellationToken)
public virtual ListOrgPolicyViolationsResponse ListOrgPolicyViolations(ListOrgPolicyViolationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
ListOrgPolicyViolations lists the [OrgPolicyViolations][] that are present in an [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview].
Parameters | |
---|---|
Name | Description |
request |
ListOrgPolicyViolationsRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ListOrgPolicyViolationsResponse |
The response received from the server. |
ListOrgPolicyViolationsAsync(ListOrgPolicyViolationsRequest, CallOptions)
public virtual AsyncUnaryCall<ListOrgPolicyViolationsResponse> ListOrgPolicyViolationsAsync(ListOrgPolicyViolationsRequest request, CallOptions options)
ListOrgPolicyViolations lists the [OrgPolicyViolations][] that are present in an [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview].
Parameters | |
---|---|
Name | Description |
request |
ListOrgPolicyViolationsRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListOrgPolicyViolationsResponse |
The call object. |
ListOrgPolicyViolationsAsync(ListOrgPolicyViolationsRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ListOrgPolicyViolationsResponse> ListOrgPolicyViolationsAsync(ListOrgPolicyViolationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
ListOrgPolicyViolations lists the [OrgPolicyViolations][] that are present in an [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview].
Parameters | |
---|---|
Name | Description |
request |
ListOrgPolicyViolationsRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListOrgPolicyViolationsResponse |
The call object. |
ListOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest, CallOptions)
public virtual ListOrgPolicyViolationsPreviewsResponse ListOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest request, CallOptions options)
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 to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListOrgPolicyViolationsPreviewsResponse |
The response received from the server. |
ListOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest, Metadata, DateTime?, CancellationToken)
public virtual ListOrgPolicyViolationsPreviewsResponse ListOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ListOrgPolicyViolationsPreviewsResponse |
The response received from the server. |
ListOrgPolicyViolationsPreviewsAsync(ListOrgPolicyViolationsPreviewsRequest, CallOptions)
public virtual AsyncUnaryCall<ListOrgPolicyViolationsPreviewsResponse> ListOrgPolicyViolationsPreviewsAsync(ListOrgPolicyViolationsPreviewsRequest request, CallOptions options)
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 to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListOrgPolicyViolationsPreviewsResponse |
The call object. |
ListOrgPolicyViolationsPreviewsAsync(ListOrgPolicyViolationsPreviewsRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ListOrgPolicyViolationsPreviewsResponse> ListOrgPolicyViolationsPreviewsAsync(ListOrgPolicyViolationsPreviewsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListOrgPolicyViolationsPreviewsResponse |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
OrgPolicyViolationsPreviewServiceOrgPolicyViolationsPreviewServiceClient |