Compute Engine v1 API - Class SecurityPolicies.SecurityPoliciesClient (2.17.0)

public class SecurityPolicies.SecurityPoliciesClient : ClientBase<SecurityPolicies.SecurityPoliciesClient>

Reference documentation and code samples for the Compute Engine v1 API class SecurityPolicies.SecurityPoliciesClient.

Client for SecurityPolicies

Inheritance

object > ClientBase > ClientBaseSecurityPoliciesSecurityPoliciesClient > 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
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

SecurityPoliciesClient(ChannelBase)

public SecurityPoliciesClient(ChannelBase channel)

Creates a new client for SecurityPolicies

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

SecurityPoliciesClient(ClientBaseConfiguration)

protected SecurityPoliciesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

AddRule(AddRuleSecurityPolicyRequest, CallOptions)

public virtual Operation AddRule(AddRuleSecurityPolicyRequest request, CallOptions options)

Inserts a rule into a security policy.

Parameters
Name Description
request AddRuleSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

AddRule(AddRuleSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Inserts a rule into a security policy.

Parameters
Name Description
request AddRuleSecurityPolicyRequest

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.

AddRuleAsync(AddRuleSecurityPolicyRequest, CallOptions)

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

Inserts a rule into a security policy.

Parameters
Name Description
request AddRuleSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

AddRuleAsync(AddRuleSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Inserts a rule into a security policy.

Parameters
Name Description
request AddRuleSecurityPolicyRequest

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.

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. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListSecurityPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SecurityPoliciesAggregatedList

The response received from the server.

AggregatedList(AggregatedListSecurityPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListSecurityPoliciesRequest

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
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. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListSecurityPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSecurityPoliciesAggregatedList

The call object.

AggregatedListAsync(AggregatedListSecurityPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListSecurityPoliciesRequest

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
AsyncUnaryCallSecurityPoliciesAggregatedList

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
Type Description
OperationsOperationsClient

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
Name Description
request DeleteSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Delete(DeleteSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified policy.

Parameters
Name Description
request DeleteSecurityPolicyRequest

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.

DeleteAsync(DeleteSecurityPolicyRequest, CallOptions)

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

Deletes the specified policy.

Parameters
Name Description
request DeleteSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified policy.

Parameters
Name Description
request DeleteSecurityPolicyRequest

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.

Get(GetSecurityPolicyRequest, CallOptions)

public virtual SecurityPolicy Get(GetSecurityPolicyRequest request, CallOptions options)

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

Parameters
Name Description
request GetSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SecurityPolicy

The response received from the server.

Get(GetSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request GetSecurityPolicyRequest

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
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
Name Description
request GetSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSecurityPolicy

The call object.

GetAsync(GetSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request GetSecurityPolicyRequest

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
AsyncUnaryCallSecurityPolicy

The call object.

GetRule(GetRuleSecurityPolicyRequest, CallOptions)

public virtual SecurityPolicyRule GetRule(GetRuleSecurityPolicyRequest request, CallOptions options)

Gets a rule at the specified priority.

Parameters
Name Description
request GetRuleSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SecurityPolicyRule

The response received from the server.

GetRule(GetRuleSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Gets a rule at the specified priority.

Parameters
Name Description
request GetRuleSecurityPolicyRequest

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
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
Name Description
request GetRuleSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSecurityPolicyRule

The call object.

GetRuleAsync(GetRuleSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Gets a rule at the specified priority.

Parameters
Name Description
request GetRuleSecurityPolicyRequest

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
AsyncUnaryCallSecurityPolicyRule

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
Name Description
request InsertSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Insert(InsertSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request InsertSecurityPolicyRequest

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.

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
Name Description
request InsertSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request InsertSecurityPolicyRequest

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.

List(ListSecurityPoliciesRequest, CallOptions)

public virtual SecurityPolicyList List(ListSecurityPoliciesRequest request, CallOptions options)

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

Parameters
Name Description
request ListSecurityPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SecurityPolicyList

The response received from the server.

List(ListSecurityPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request ListSecurityPoliciesRequest

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
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
Name Description
request ListSecurityPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSecurityPolicyList

The call object.

ListAsync(ListSecurityPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request ListSecurityPoliciesRequest

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
AsyncUnaryCallSecurityPolicyList

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
Name Description
request ListPreconfiguredExpressionSetsSecurityPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SecurityPoliciesListPreconfiguredExpressionSetsResponse

The response received from the server.

ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsSecurityPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request ListPreconfiguredExpressionSetsSecurityPoliciesRequest

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
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
Name Description
request ListPreconfiguredExpressionSetsSecurityPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSecurityPoliciesListPreconfiguredExpressionSetsResponse

The call object.

ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsSecurityPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request ListPreconfiguredExpressionSetsSecurityPoliciesRequest

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
AsyncUnaryCallSecurityPoliciesListPreconfiguredExpressionSetsResponse

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
SecurityPoliciesSecurityPoliciesClient
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. To clear fields in the policy, leave the fields empty and specify them in the updateMask. 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
Name Description
request PatchSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Patch(PatchSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. 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
Name Description
request PatchSecurityPolicyRequest

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.

PatchAsync(PatchSecurityPolicyRequest, CallOptions)

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

Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. 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
Name Description
request PatchSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. 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
Name Description
request PatchSecurityPolicyRequest

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.

PatchRule(PatchRuleSecurityPolicyRequest, CallOptions)

public virtual Operation PatchRule(PatchRuleSecurityPolicyRequest request, CallOptions options)

Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.

Parameters
Name Description
request PatchRuleSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

PatchRule(PatchRuleSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.

Parameters
Name Description
request PatchRuleSecurityPolicyRequest

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.

PatchRuleAsync(PatchRuleSecurityPolicyRequest, CallOptions)

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

Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.

Parameters
Name Description
request PatchRuleSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchRuleAsync(PatchRuleSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.

Parameters
Name Description
request PatchRuleSecurityPolicyRequest

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.

RemoveRule(RemoveRuleSecurityPolicyRequest, CallOptions)

public virtual Operation RemoveRule(RemoveRuleSecurityPolicyRequest request, CallOptions options)

Deletes a rule at the specified priority.

Parameters
Name Description
request RemoveRuleSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

RemoveRule(RemoveRuleSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a rule at the specified priority.

Parameters
Name Description
request RemoveRuleSecurityPolicyRequest

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.

RemoveRuleAsync(RemoveRuleSecurityPolicyRequest, CallOptions)

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

Deletes a rule at the specified priority.

Parameters
Name Description
request RemoveRuleSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

RemoveRuleAsync(RemoveRuleSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a rule at the specified priority.

Parameters
Name Description
request RemoveRuleSecurityPolicyRequest

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.

SetLabels(SetLabelsSecurityPolicyRequest, CallOptions)

public virtual Operation SetLabels(SetLabelsSecurityPolicyRequest request, CallOptions options)

Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.

Parameters
Name Description
request SetLabelsSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

SetLabels(SetLabelsSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.

Parameters
Name Description
request SetLabelsSecurityPolicyRequest

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.

SetLabelsAsync(SetLabelsSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SetLabelsAsync(SetLabelsSecurityPolicyRequest request, CallOptions options)

Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.

Parameters
Name Description
request SetLabelsSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

SetLabelsAsync(SetLabelsSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.

Parameters
Name Description
request SetLabelsSecurityPolicyRequest

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.