Compute Engine v1 API - Class SecurityPolicies.SecurityPoliciesClient (2.10.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
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(ClientBaseConfiguration)

protected SecurityPoliciesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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, 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
NameDescription
requestAddRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestAddRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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.

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, 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.

Parameters
NameDescription
requestAggregatedListSecurityPoliciesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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.

Parameters
NameDescription
requestAggregatedListSecurityPoliciesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
TypeDescription
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
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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
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
NameDescription
requestDeleteSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
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, 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
NameDescription
requestGetSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestGetSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallSecurityPolicy

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, 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
NameDescription
requestGetRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestGetRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
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, 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
NameDescription
requestInsertSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestInsertSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
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, 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
NameDescription
requestListSecurityPoliciesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestListSecurityPoliciesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
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, 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
NameDescription
requestListPreconfiguredExpressionSetsSecurityPoliciesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestListPreconfiguredExpressionSetsSecurityPoliciesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallSecurityPoliciesListPreconfiguredExpressionSetsResponse

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
SecurityPoliciesSecurityPoliciesClient
Overrides

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 rule, 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
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, 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 rule, 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
NameDescription
requestPatchSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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. To clear fields in the rule, 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
NameDescription
requestPatchSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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 rule, 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
NameDescription
requestPatchSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
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.

Parameters
NameDescription
requestPatchRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

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, 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
NameDescription
requestRemoveRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestRemoveRuleSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestSetLabelsSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestSetLabelsSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

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
NameDescription
requestSetLabelsSecurityPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestSetLabelsSecurityPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.