Class SecurityPolicies.SecurityPoliciesClient (1.4.0)

public class SecurityPoliciesClient : ClientBase<SecurityPolicies.SecurityPoliciesClient>

Client for SecurityPolicies

Inheritance

Object > ClientBase > ClientBase<SecurityPolicies.SecurityPoliciesClient> > SecurityPolicies.SecurityPoliciesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

SecurityPoliciesClient()

protected SecurityPoliciesClient()

Protected parameterless constructor to allow creation of test doubles.

SecurityPoliciesClient(CallInvoker)

public SecurityPoliciesClient(CallInvoker callInvoker)

Creates a new client for SecurityPolicies that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

SecurityPoliciesClient(ChannelBase)

public SecurityPoliciesClient(ChannelBase channel)

Creates a new client for SecurityPolicies

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

SecurityPoliciesClient(ClientBase.ClientBaseConfiguration)

protected SecurityPoliciesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

AddRule(AddRuleSecurityPolicyRequest, CallOptions)

public virtual Operation AddRule(AddRuleSecurityPolicyRequest request, CallOptions options)

Inserts a rule into a security policy.

Parameters
NameDescription
requestAddRuleSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

AddRule(AddRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation AddRule(AddRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Inserts a rule into a security policy.

Parameters
NameDescription
requestAddRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

AddRuleAsync(AddRuleSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> AddRuleAsync(AddRuleSecurityPolicyRequest request, CallOptions options)

Inserts a rule into a security policy.

Parameters
NameDescription
requestAddRuleSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

AddRuleAsync(AddRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> AddRuleAsync(AddRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Inserts a rule into a security policy.

Parameters
NameDescription
requestAddRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

AggregatedList(AggregatedListSecurityPoliciesRequest, CallOptions)

public virtual SecurityPoliciesAggregatedList AggregatedList(AggregatedListSecurityPoliciesRequest request, CallOptions options)

Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListSecurityPoliciesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SecurityPoliciesAggregatedList

The response received from the server.

AggregatedList(AggregatedListSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual SecurityPoliciesAggregatedList AggregatedList(AggregatedListSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListSecurityPoliciesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
SecurityPoliciesAggregatedList

The response received from the server.

AggregatedListAsync(AggregatedListSecurityPoliciesRequest, CallOptions)

public virtual AsyncUnaryCall<SecurityPoliciesAggregatedList> AggregatedListAsync(AggregatedListSecurityPoliciesRequest request, CallOptions options)

Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListSecurityPoliciesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<SecurityPoliciesAggregatedList>

The call object.

AggregatedListAsync(AggregatedListSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<SecurityPoliciesAggregatedList> AggregatedListAsync(AggregatedListSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListSecurityPoliciesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<SecurityPoliciesAggregatedList>

The call object.

CreateOperationsClientForGlobalOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to GlobalOperations.

Returns
TypeDescription
Operations.OperationsClient

A new Operations client for the same target as this client.

Delete(DeleteSecurityPolicyRequest, CallOptions)

public virtual Operation Delete(DeleteSecurityPolicyRequest request, CallOptions options)

Deletes the specified policy.

Parameters
NameDescription
requestDeleteSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation Delete(DeleteSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Deletes the specified policy.

Parameters
NameDescription
requestDeleteSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteAsync(DeleteSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteSecurityPolicyRequest request, CallOptions options)

Deletes the specified policy.

Parameters
NameDescription
requestDeleteSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

DeleteAsync(DeleteSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Deletes the specified policy.

Parameters
NameDescription
requestDeleteSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

Get(GetSecurityPolicyRequest, CallOptions)

public virtual SecurityPolicy Get(GetSecurityPolicyRequest request, CallOptions options)

List all of the ordered rules present in a single specified policy.

Parameters
NameDescription
requestGetSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SecurityPolicy

The response received from the server.

Get(GetSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual SecurityPolicy Get(GetSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

List all of the ordered rules present in a single specified policy.

Parameters
NameDescription
requestGetSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
SecurityPolicy

The response received from the server.

GetAsync(GetSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<SecurityPolicy> GetAsync(GetSecurityPolicyRequest request, CallOptions options)

List all of the ordered rules present in a single specified policy.

Parameters
NameDescription
requestGetSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<SecurityPolicy>

The call object.

GetAsync(GetSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<SecurityPolicy> GetAsync(GetSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

List all of the ordered rules present in a single specified policy.

Parameters
NameDescription
requestGetSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<SecurityPolicy>

The call object.

GetRule(GetRuleSecurityPolicyRequest, CallOptions)

public virtual SecurityPolicyRule GetRule(GetRuleSecurityPolicyRequest request, CallOptions options)

Gets a rule at the specified priority.

Parameters
NameDescription
requestGetRuleSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SecurityPolicyRule

The response received from the server.

GetRule(GetRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual SecurityPolicyRule GetRule(GetRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Gets a rule at the specified priority.

Parameters
NameDescription
requestGetRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
SecurityPolicyRule

The response received from the server.

GetRuleAsync(GetRuleSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<SecurityPolicyRule> GetRuleAsync(GetRuleSecurityPolicyRequest request, CallOptions options)

Gets a rule at the specified priority.

Parameters
NameDescription
requestGetRuleSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<SecurityPolicyRule>

The call object.

GetRuleAsync(GetRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<SecurityPolicyRule> GetRuleAsync(GetRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Gets a rule at the specified priority.

Parameters
NameDescription
requestGetRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<SecurityPolicyRule>

The call object.

Insert(InsertSecurityPolicyRequest, CallOptions)

public virtual Operation Insert(InsertSecurityPolicyRequest request, CallOptions options)

Creates a new policy in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation Insert(InsertSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Creates a new policy in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

InsertAsync(InsertSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertSecurityPolicyRequest request, CallOptions options)

Creates a new policy in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

InsertAsync(InsertSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Creates a new policy in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

List(ListSecurityPoliciesRequest, CallOptions)

public virtual SecurityPolicyList List(ListSecurityPoliciesRequest request, CallOptions options)

List all the policies that have been configured for the specified project.

Parameters
NameDescription
requestListSecurityPoliciesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SecurityPolicyList

The response received from the server.

List(ListSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual SecurityPolicyList List(ListSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

List all the policies that have been configured for the specified project.

Parameters
NameDescription
requestListSecurityPoliciesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
SecurityPolicyList

The response received from the server.

ListAsync(ListSecurityPoliciesRequest, CallOptions)

public virtual AsyncUnaryCall<SecurityPolicyList> ListAsync(ListSecurityPoliciesRequest request, CallOptions options)

List all the policies that have been configured for the specified project.

Parameters
NameDescription
requestListSecurityPoliciesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<SecurityPolicyList>

The call object.

ListAsync(ListSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<SecurityPolicyList> ListAsync(ListSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

List all the policies that have been configured for the specified project.

Parameters
NameDescription
requestListSecurityPoliciesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<SecurityPolicyList>

The call object.

ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsSecurityPoliciesRequest, CallOptions)

public virtual SecurityPoliciesListPreconfiguredExpressionSetsResponse ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsSecurityPoliciesRequest request, CallOptions options)

Gets the current list of preconfigured Web Application Firewall (WAF) expressions.

Parameters
NameDescription
requestListPreconfiguredExpressionSetsSecurityPoliciesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SecurityPoliciesListPreconfiguredExpressionSetsResponse

The response received from the server.

ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual SecurityPoliciesListPreconfiguredExpressionSetsResponse ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Gets the current list of preconfigured Web Application Firewall (WAF) expressions.

Parameters
NameDescription
requestListPreconfiguredExpressionSetsSecurityPoliciesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
SecurityPoliciesListPreconfiguredExpressionSetsResponse

The response received from the server.

ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsSecurityPoliciesRequest, CallOptions)

public virtual AsyncUnaryCall<SecurityPoliciesListPreconfiguredExpressionSetsResponse> ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsSecurityPoliciesRequest request, CallOptions options)

Gets the current list of preconfigured Web Application Firewall (WAF) expressions.

Parameters
NameDescription
requestListPreconfiguredExpressionSetsSecurityPoliciesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<SecurityPoliciesListPreconfiguredExpressionSetsResponse>

The call object.

ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<SecurityPoliciesListPreconfiguredExpressionSetsResponse> ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Gets the current list of preconfigured Web Application Firewall (WAF) expressions.

Parameters
NameDescription
requestListPreconfiguredExpressionSetsSecurityPoliciesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<SecurityPoliciesListPreconfiguredExpressionSetsResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override SecurityPolicies.SecurityPoliciesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
SecurityPolicies.SecurityPoliciesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.SecurityPolicies.SecurityPoliciesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchSecurityPolicyRequest, CallOptions)

public virtual Operation Patch(PatchSecurityPolicyRequest request, CallOptions options)

Patches the specified policy with the data included in the request. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.

Parameters
NameDescription
requestPatchSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Patch(PatchSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation Patch(PatchSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Patches the specified policy with the data included in the request. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.

Parameters
NameDescription
requestPatchSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

PatchAsync(PatchSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchSecurityPolicyRequest request, CallOptions options)

Patches the specified policy with the data included in the request. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.

Parameters
NameDescription
requestPatchSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

PatchAsync(PatchSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Patches the specified policy with the data included in the request. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.

Parameters
NameDescription
requestPatchSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

PatchRule(PatchRuleSecurityPolicyRequest, CallOptions)

public virtual Operation PatchRule(PatchRuleSecurityPolicyRequest request, CallOptions options)

Patches a rule at the specified priority.

Parameters
NameDescription
requestPatchRuleSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

PatchRule(PatchRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation PatchRule(PatchRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Patches a rule at the specified priority.

Parameters
NameDescription
requestPatchRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

PatchRuleAsync(PatchRuleSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchRuleAsync(PatchRuleSecurityPolicyRequest request, CallOptions options)

Patches a rule at the specified priority.

Parameters
NameDescription
requestPatchRuleSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

PatchRuleAsync(PatchRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> PatchRuleAsync(PatchRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Patches a rule at the specified priority.

Parameters
NameDescription
requestPatchRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

RemoveRule(RemoveRuleSecurityPolicyRequest, CallOptions)

public virtual Operation RemoveRule(RemoveRuleSecurityPolicyRequest request, CallOptions options)

Deletes a rule at the specified priority.

Parameters
NameDescription
requestRemoveRuleSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

RemoveRule(RemoveRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation RemoveRule(RemoveRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Deletes a rule at the specified priority.

Parameters
NameDescription
requestRemoveRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

RemoveRuleAsync(RemoveRuleSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> RemoveRuleAsync(RemoveRuleSecurityPolicyRequest request, CallOptions options)

Deletes a rule at the specified priority.

Parameters
NameDescription
requestRemoveRuleSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

RemoveRuleAsync(RemoveRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> RemoveRuleAsync(RemoveRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Deletes a rule at the specified priority.

Parameters
NameDescription
requestRemoveRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.