Compute Engine v1 API - Class FirewallPolicies.FirewallPoliciesClient (2.10.0)

public class FirewallPolicies.FirewallPoliciesClient : ClientBase<FirewallPolicies.FirewallPoliciesClient>

Reference documentation and code samples for the Compute Engine v1 API class FirewallPolicies.FirewallPoliciesClient.

Client for FirewallPolicies

Inheritance

object > ClientBase > ClientBaseFirewallPoliciesFirewallPoliciesClient > FirewallPolicies.FirewallPoliciesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

FirewallPoliciesClient()

protected FirewallPoliciesClient()

Protected parameterless constructor to allow creation of test doubles.

FirewallPoliciesClient(CallInvoker)

public FirewallPoliciesClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

FirewallPoliciesClient(ChannelBase)

public FirewallPoliciesClient(ChannelBase channel)

Creates a new client for FirewallPolicies

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

FirewallPoliciesClient(ClientBaseConfiguration)

protected FirewallPoliciesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

AddAssociation(AddAssociationFirewallPolicyRequest, CallOptions)

public virtual Operation AddAssociation(AddAssociationFirewallPolicyRequest request, CallOptions options)

Inserts an association for the specified firewall policy.

Parameters
NameDescription
requestAddAssociationFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

AddAssociation(AddAssociationFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Inserts an association for the specified firewall policy.

Parameters
NameDescription
requestAddAssociationFirewallPolicyRequest

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.

AddAssociationAsync(AddAssociationFirewallPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> AddAssociationAsync(AddAssociationFirewallPolicyRequest request, CallOptions options)

Inserts an association for the specified firewall policy.

Parameters
NameDescription
requestAddAssociationFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

AddAssociationAsync(AddAssociationFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Inserts an association for the specified firewall policy.

Parameters
NameDescription
requestAddAssociationFirewallPolicyRequest

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.

AddRule(AddRuleFirewallPolicyRequest, CallOptions)

public virtual Operation AddRule(AddRuleFirewallPolicyRequest request, CallOptions options)

Inserts a rule into a firewall policy.

Parameters
NameDescription
requestAddRuleFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

AddRule(AddRuleFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Inserts a rule into a firewall policy.

Parameters
NameDescription
requestAddRuleFirewallPolicyRequest

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(AddRuleFirewallPolicyRequest, CallOptions)

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

Inserts a rule into a firewall policy.

Parameters
NameDescription
requestAddRuleFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

AddRuleAsync(AddRuleFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Inserts a rule into a firewall policy.

Parameters
NameDescription
requestAddRuleFirewallPolicyRequest

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.

CloneRules(CloneRulesFirewallPolicyRequest, CallOptions)

public virtual Operation CloneRules(CloneRulesFirewallPolicyRequest request, CallOptions options)

Copies rules to the specified firewall policy.

Parameters
NameDescription
requestCloneRulesFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

CloneRules(CloneRulesFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Copies rules to the specified firewall policy.

Parameters
NameDescription
requestCloneRulesFirewallPolicyRequest

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.

CloneRulesAsync(CloneRulesFirewallPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CloneRulesAsync(CloneRulesFirewallPolicyRequest request, CallOptions options)

Copies rules to the specified firewall policy.

Parameters
NameDescription
requestCloneRulesFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

CloneRulesAsync(CloneRulesFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Copies rules to the specified firewall policy.

Parameters
NameDescription
requestCloneRulesFirewallPolicyRequest

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.

CreateOperationsClientForGlobalOrganizationOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOrganizationOperations()

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

Returns
TypeDescription
OperationsOperationsClient

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

Delete(DeleteFirewallPolicyRequest, CallOptions)

public virtual Operation Delete(DeleteFirewallPolicyRequest request, CallOptions options)

Deletes the specified policy.

Parameters
NameDescription
requestDeleteFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified policy.

Parameters
NameDescription
requestDeleteFirewallPolicyRequest

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(DeleteFirewallPolicyRequest, CallOptions)

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

Deletes the specified policy.

Parameters
NameDescription
requestDeleteFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified policy.

Parameters
NameDescription
requestDeleteFirewallPolicyRequest

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(GetFirewallPolicyRequest, CallOptions)

public virtual FirewallPolicy Get(GetFirewallPolicyRequest request, CallOptions options)

Returns the specified firewall policy.

Parameters
NameDescription
requestGetFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
FirewallPolicy

The response received from the server.

Get(GetFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified firewall policy.

Parameters
NameDescription
requestGetFirewallPolicyRequest

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
FirewallPolicy

The response received from the server.

GetAssociation(GetAssociationFirewallPolicyRequest, CallOptions)

public virtual FirewallPolicyAssociation GetAssociation(GetAssociationFirewallPolicyRequest request, CallOptions options)

Gets an association with the specified name.

Parameters
NameDescription
requestGetAssociationFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
FirewallPolicyAssociation

The response received from the server.

GetAssociation(GetAssociationFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual FirewallPolicyAssociation GetAssociation(GetAssociationFirewallPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets an association with the specified name.

Parameters
NameDescription
requestGetAssociationFirewallPolicyRequest

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
FirewallPolicyAssociation

The response received from the server.

GetAssociationAsync(GetAssociationFirewallPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<FirewallPolicyAssociation> GetAssociationAsync(GetAssociationFirewallPolicyRequest request, CallOptions options)

Gets an association with the specified name.

Parameters
NameDescription
requestGetAssociationFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallFirewallPolicyAssociation

The call object.

GetAssociationAsync(GetAssociationFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<FirewallPolicyAssociation> GetAssociationAsync(GetAssociationFirewallPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets an association with the specified name.

Parameters
NameDescription
requestGetAssociationFirewallPolicyRequest

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
AsyncUnaryCallFirewallPolicyAssociation

The call object.

GetAsync(GetFirewallPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<FirewallPolicy> GetAsync(GetFirewallPolicyRequest request, CallOptions options)

Returns the specified firewall policy.

Parameters
NameDescription
requestGetFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallFirewallPolicy

The call object.

GetAsync(GetFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified firewall policy.

Parameters
NameDescription
requestGetFirewallPolicyRequest

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
AsyncUnaryCallFirewallPolicy

The call object.

GetIamPolicy(GetIamPolicyFirewallPolicyRequest, CallOptions)

public virtual Policy GetIamPolicy(GetIamPolicyFirewallPolicyRequest request, CallOptions options)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

GetIamPolicy(GetIamPolicyFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Policy GetIamPolicy(GetIamPolicyFirewallPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyFirewallPolicyRequest

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
Policy

The response received from the server.

GetIamPolicyAsync(GetIamPolicyFirewallPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyFirewallPolicyRequest request, CallOptions options)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPolicy

The call object.

GetIamPolicyAsync(GetIamPolicyFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyFirewallPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyFirewallPolicyRequest

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
AsyncUnaryCallPolicy

The call object.

GetRule(GetRuleFirewallPolicyRequest, CallOptions)

public virtual FirewallPolicyRule GetRule(GetRuleFirewallPolicyRequest request, CallOptions options)

Gets a rule of the specified priority.

Parameters
NameDescription
requestGetRuleFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
FirewallPolicyRule

The response received from the server.

GetRule(GetRuleFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Gets a rule of the specified priority.

Parameters
NameDescription
requestGetRuleFirewallPolicyRequest

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
FirewallPolicyRule

The response received from the server.

GetRuleAsync(GetRuleFirewallPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<FirewallPolicyRule> GetRuleAsync(GetRuleFirewallPolicyRequest request, CallOptions options)

Gets a rule of the specified priority.

Parameters
NameDescription
requestGetRuleFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallFirewallPolicyRule

The call object.

GetRuleAsync(GetRuleFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Gets a rule of the specified priority.

Parameters
NameDescription
requestGetRuleFirewallPolicyRequest

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
AsyncUnaryCallFirewallPolicyRule

The call object.

Insert(InsertFirewallPolicyRequest, CallOptions)

public virtual Operation Insert(InsertFirewallPolicyRequest request, CallOptions options)

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

Parameters
NameDescription
requestInsertFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertFirewallPolicyRequest 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
requestInsertFirewallPolicyRequest

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(InsertFirewallPolicyRequest, CallOptions)

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

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

Parameters
NameDescription
requestInsertFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertFirewallPolicyRequest 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
requestInsertFirewallPolicyRequest

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(ListFirewallPoliciesRequest, CallOptions)

public virtual FirewallPolicyList List(ListFirewallPoliciesRequest request, CallOptions options)

Lists all the policies that have been configured for the specified folder or organization.

Parameters
NameDescription
requestListFirewallPoliciesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
FirewallPolicyList

The response received from the server.

List(ListFirewallPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

Lists all the policies that have been configured for the specified folder or organization.

Parameters
NameDescription
requestListFirewallPoliciesRequest

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
FirewallPolicyList

The response received from the server.

ListAssociations(ListAssociationsFirewallPolicyRequest, CallOptions)

public virtual FirewallPoliciesListAssociationsResponse ListAssociations(ListAssociationsFirewallPolicyRequest request, CallOptions options)

Lists associations of a specified target, i.e., organization or folder.

Parameters
NameDescription
requestListAssociationsFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
FirewallPoliciesListAssociationsResponse

The response received from the server.

ListAssociations(ListAssociationsFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual FirewallPoliciesListAssociationsResponse ListAssociations(ListAssociationsFirewallPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists associations of a specified target, i.e., organization or folder.

Parameters
NameDescription
requestListAssociationsFirewallPolicyRequest

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
FirewallPoliciesListAssociationsResponse

The response received from the server.

ListAssociationsAsync(ListAssociationsFirewallPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<FirewallPoliciesListAssociationsResponse> ListAssociationsAsync(ListAssociationsFirewallPolicyRequest request, CallOptions options)

Lists associations of a specified target, i.e., organization or folder.

Parameters
NameDescription
requestListAssociationsFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallFirewallPoliciesListAssociationsResponse

The call object.

ListAssociationsAsync(ListAssociationsFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<FirewallPoliciesListAssociationsResponse> ListAssociationsAsync(ListAssociationsFirewallPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists associations of a specified target, i.e., organization or folder.

Parameters
NameDescription
requestListAssociationsFirewallPolicyRequest

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
AsyncUnaryCallFirewallPoliciesListAssociationsResponse

The call object.

ListAsync(ListFirewallPoliciesRequest, CallOptions)

public virtual AsyncUnaryCall<FirewallPolicyList> ListAsync(ListFirewallPoliciesRequest request, CallOptions options)

Lists all the policies that have been configured for the specified folder or organization.

Parameters
NameDescription
requestListFirewallPoliciesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallFirewallPolicyList

The call object.

ListAsync(ListFirewallPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

Lists all the policies that have been configured for the specified folder or organization.

Parameters
NameDescription
requestListFirewallPoliciesRequest

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
AsyncUnaryCallFirewallPolicyList

The call object.

Move(MoveFirewallPolicyRequest, CallOptions)

public virtual Operation Move(MoveFirewallPolicyRequest request, CallOptions options)

Moves the specified firewall policy.

Parameters
NameDescription
requestMoveFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Move(MoveFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Moves the specified firewall policy.

Parameters
NameDescription
requestMoveFirewallPolicyRequest

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.

MoveAsync(MoveFirewallPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> MoveAsync(MoveFirewallPolicyRequest request, CallOptions options)

Moves the specified firewall policy.

Parameters
NameDescription
requestMoveFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

MoveAsync(MoveFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Moves the specified firewall policy.

Parameters
NameDescription
requestMoveFirewallPolicyRequest

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.

NewInstance(ClientBaseConfiguration)

protected override FirewallPolicies.FirewallPoliciesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
FirewallPoliciesFirewallPoliciesClient
Overrides

Patch(PatchFirewallPolicyRequest, CallOptions)

public virtual Operation Patch(PatchFirewallPolicyRequest request, CallOptions options)

Patches the specified policy with the data included in the request.

Parameters
NameDescription
requestPatchFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Patch(PatchFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Patches the specified policy with the data included in the request.

Parameters
NameDescription
requestPatchFirewallPolicyRequest

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(PatchFirewallPolicyRequest, CallOptions)

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

Patches the specified policy with the data included in the request.

Parameters
NameDescription
requestPatchFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Patches the specified policy with the data included in the request.

Parameters
NameDescription
requestPatchFirewallPolicyRequest

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(PatchRuleFirewallPolicyRequest, CallOptions)

public virtual Operation PatchRule(PatchRuleFirewallPolicyRequest request, CallOptions options)

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

PatchRule(PatchRuleFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleFirewallPolicyRequest

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(PatchRuleFirewallPolicyRequest, CallOptions)

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

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

PatchRuleAsync(PatchRuleFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleFirewallPolicyRequest

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.

RemoveAssociation(RemoveAssociationFirewallPolicyRequest, CallOptions)

public virtual Operation RemoveAssociation(RemoveAssociationFirewallPolicyRequest request, CallOptions options)

Removes an association for the specified firewall policy.

Parameters
NameDescription
requestRemoveAssociationFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

RemoveAssociation(RemoveAssociationFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Removes an association for the specified firewall policy.

Parameters
NameDescription
requestRemoveAssociationFirewallPolicyRequest

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.

RemoveAssociationAsync(RemoveAssociationFirewallPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> RemoveAssociationAsync(RemoveAssociationFirewallPolicyRequest request, CallOptions options)

Removes an association for the specified firewall policy.

Parameters
NameDescription
requestRemoveAssociationFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

RemoveAssociationAsync(RemoveAssociationFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Removes an association for the specified firewall policy.

Parameters
NameDescription
requestRemoveAssociationFirewallPolicyRequest

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(RemoveRuleFirewallPolicyRequest, CallOptions)

public virtual Operation RemoveRule(RemoveRuleFirewallPolicyRequest request, CallOptions options)

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

RemoveRule(RemoveRuleFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleFirewallPolicyRequest

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(RemoveRuleFirewallPolicyRequest, CallOptions)

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

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

RemoveRuleAsync(RemoveRuleFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleFirewallPolicyRequest

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.

SetIamPolicy(SetIamPolicyFirewallPolicyRequest, CallOptions)

public virtual Policy SetIamPolicy(SetIamPolicyFirewallPolicyRequest request, CallOptions options)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

SetIamPolicy(SetIamPolicyFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Policy SetIamPolicy(SetIamPolicyFirewallPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyFirewallPolicyRequest

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
Policy

The response received from the server.

SetIamPolicyAsync(SetIamPolicyFirewallPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyFirewallPolicyRequest request, CallOptions options)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPolicy

The call object.

SetIamPolicyAsync(SetIamPolicyFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyFirewallPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyFirewallPolicyRequest

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
AsyncUnaryCallPolicy

The call object.

TestIamPermissions(TestIamPermissionsFirewallPolicyRequest, CallOptions)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsFirewallPolicyRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TestPermissionsResponse

The response received from the server.

TestIamPermissions(TestIamPermissionsFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsFirewallPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsFirewallPolicyRequest

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
TestPermissionsResponse

The response received from the server.

TestIamPermissionsAsync(TestIamPermissionsFirewallPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsFirewallPolicyRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTestPermissionsResponse

The call object.

TestIamPermissionsAsync(TestIamPermissionsFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsFirewallPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsFirewallPolicyRequest

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
AsyncUnaryCallTestPermissionsResponse

The call object.