Compute Engine v1 API - Class NetworkFirewallPolicies.NetworkFirewallPoliciesClient (2.15.0)

public class NetworkFirewallPolicies.NetworkFirewallPoliciesClient : ClientBase<NetworkFirewallPolicies.NetworkFirewallPoliciesClient>

Reference documentation and code samples for the Compute Engine v1 API class NetworkFirewallPolicies.NetworkFirewallPoliciesClient.

Client for NetworkFirewallPolicies

Inheritance

object > ClientBase > ClientBaseNetworkFirewallPoliciesNetworkFirewallPoliciesClient > NetworkFirewallPolicies.NetworkFirewallPoliciesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

NetworkFirewallPoliciesClient()

protected NetworkFirewallPoliciesClient()

Protected parameterless constructor to allow creation of test doubles.

NetworkFirewallPoliciesClient(CallInvoker)

public NetworkFirewallPoliciesClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

NetworkFirewallPoliciesClient(ChannelBase)

public NetworkFirewallPoliciesClient(ChannelBase channel)

Creates a new client for NetworkFirewallPolicies

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

NetworkFirewallPoliciesClient(ClientBaseConfiguration)

protected NetworkFirewallPoliciesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

AddAssociation(AddAssociationNetworkFirewallPolicyRequest, CallOptions)

public virtual Operation AddAssociation(AddAssociationNetworkFirewallPolicyRequest request, CallOptions options)

Inserts an association for the specified firewall policy.

Parameters
NameDescription
requestAddAssociationNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

AddAssociation(AddAssociationNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Inserts an association for the specified firewall policy.

Parameters
NameDescription
requestAddAssociationNetworkFirewallPolicyRequest

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

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

Inserts an association for the specified firewall policy.

Parameters
NameDescription
requestAddAssociationNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

AddAssociationAsync(AddAssociationNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Inserts an association for the specified firewall policy.

Parameters
NameDescription
requestAddAssociationNetworkFirewallPolicyRequest

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

public virtual Operation AddRule(AddRuleNetworkFirewallPolicyRequest request, CallOptions options)

Inserts a rule into a firewall policy.

Parameters
NameDescription
requestAddRuleNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

AddRule(AddRuleNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Inserts a rule into a firewall policy.

Parameters
NameDescription
requestAddRuleNetworkFirewallPolicyRequest

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

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

Inserts a rule into a firewall policy.

Parameters
NameDescription
requestAddRuleNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

AddRuleAsync(AddRuleNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Inserts a rule into a firewall policy.

Parameters
NameDescription
requestAddRuleNetworkFirewallPolicyRequest

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

public virtual Operation CloneRules(CloneRulesNetworkFirewallPolicyRequest request, CallOptions options)

Copies rules to the specified firewall policy.

Parameters
NameDescription
requestCloneRulesNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

CloneRules(CloneRulesNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Copies rules to the specified firewall policy.

Parameters
NameDescription
requestCloneRulesNetworkFirewallPolicyRequest

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

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

Copies rules to the specified firewall policy.

Parameters
NameDescription
requestCloneRulesNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

CloneRulesAsync(CloneRulesNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Copies rules to the specified firewall policy.

Parameters
NameDescription
requestCloneRulesNetworkFirewallPolicyRequest

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.

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

public virtual Operation Delete(DeleteNetworkFirewallPolicyRequest request, CallOptions options)

Deletes the specified policy.

Parameters
NameDescription
requestDeleteNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified policy.

Parameters
NameDescription
requestDeleteNetworkFirewallPolicyRequest

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

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

Deletes the specified policy.

Parameters
NameDescription
requestDeleteNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified policy.

Parameters
NameDescription
requestDeleteNetworkFirewallPolicyRequest

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

public virtual FirewallPolicy Get(GetNetworkFirewallPolicyRequest request, CallOptions options)

Returns the specified network firewall policy.

Parameters
NameDescription
requestGetNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
FirewallPolicy

The response received from the server.

Get(GetNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified network firewall policy.

Parameters
NameDescription
requestGetNetworkFirewallPolicyRequest

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

public virtual FirewallPolicyAssociation GetAssociation(GetAssociationNetworkFirewallPolicyRequest request, CallOptions options)

Gets an association with the specified name.

Parameters
NameDescription
requestGetAssociationNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
FirewallPolicyAssociation

The response received from the server.

GetAssociation(GetAssociationNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Gets an association with the specified name.

Parameters
NameDescription
requestGetAssociationNetworkFirewallPolicyRequest

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

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

Gets an association with the specified name.

Parameters
NameDescription
requestGetAssociationNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallFirewallPolicyAssociation

The call object.

GetAssociationAsync(GetAssociationNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Gets an association with the specified name.

Parameters
NameDescription
requestGetAssociationNetworkFirewallPolicyRequest

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

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

Returns the specified network firewall policy.

Parameters
NameDescription
requestGetNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallFirewallPolicy

The call object.

GetAsync(GetNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified network firewall policy.

Parameters
NameDescription
requestGetNetworkFirewallPolicyRequest

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

public virtual Policy GetIamPolicy(GetIamPolicyNetworkFirewallPolicyRequest request, CallOptions options)

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

Parameters
NameDescription
requestGetIamPolicyNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

GetIamPolicy(GetIamPolicyNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Policy GetIamPolicy(GetIamPolicyNetworkFirewallPolicyRequest 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
requestGetIamPolicyNetworkFirewallPolicyRequest

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

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

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

Parameters
NameDescription
requestGetIamPolicyNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPolicy

The call object.

GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest 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
requestGetIamPolicyNetworkFirewallPolicyRequest

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

public virtual FirewallPolicyRule GetRule(GetRuleNetworkFirewallPolicyRequest request, CallOptions options)

Gets a rule of the specified priority.

Parameters
NameDescription
requestGetRuleNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
FirewallPolicyRule

The response received from the server.

GetRule(GetRuleNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Gets a rule of the specified priority.

Parameters
NameDescription
requestGetRuleNetworkFirewallPolicyRequest

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

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

Gets a rule of the specified priority.

Parameters
NameDescription
requestGetRuleNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallFirewallPolicyRule

The call object.

GetRuleAsync(GetRuleNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Gets a rule of the specified priority.

Parameters
NameDescription
requestGetRuleNetworkFirewallPolicyRequest

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

public virtual Operation Insert(InsertNetworkFirewallPolicyRequest request, CallOptions options)

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

Parameters
NameDescription
requestInsertNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertNetworkFirewallPolicyRequest 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
requestInsertNetworkFirewallPolicyRequest

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

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

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

Parameters
NameDescription
requestInsertNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertNetworkFirewallPolicyRequest 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
requestInsertNetworkFirewallPolicyRequest

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

public virtual FirewallPolicyList List(ListNetworkFirewallPoliciesRequest request, CallOptions options)

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

Parameters
NameDescription
requestListNetworkFirewallPoliciesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
FirewallPolicyList

The response received from the server.

List(ListNetworkFirewallPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
NameDescription
requestListNetworkFirewallPoliciesRequest

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.

ListAsync(ListNetworkFirewallPoliciesRequest, CallOptions)

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

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

Parameters
NameDescription
requestListNetworkFirewallPoliciesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallFirewallPolicyList

The call object.

ListAsync(ListNetworkFirewallPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
NameDescription
requestListNetworkFirewallPoliciesRequest

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.

NewInstance(ClientBaseConfiguration)

protected override NetworkFirewallPolicies.NetworkFirewallPoliciesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
NetworkFirewallPoliciesNetworkFirewallPoliciesClient
Overrides

Patch(PatchNetworkFirewallPolicyRequest, CallOptions)

public virtual Operation Patch(PatchNetworkFirewallPolicyRequest request, CallOptions options)

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

Parameters
NameDescription
requestPatchNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Patch(PatchNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
NameDescription
requestPatchNetworkFirewallPolicyRequest

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

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

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

Parameters
NameDescription
requestPatchNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
NameDescription
requestPatchNetworkFirewallPolicyRequest

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

public virtual Operation PatchRule(PatchRuleNetworkFirewallPolicyRequest request, CallOptions options)

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

PatchRule(PatchRuleNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleNetworkFirewallPolicyRequest

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

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

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

PatchRuleAsync(PatchRuleNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleNetworkFirewallPolicyRequest

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

public virtual Operation RemoveAssociation(RemoveAssociationNetworkFirewallPolicyRequest request, CallOptions options)

Removes an association for the specified firewall policy.

Parameters
NameDescription
requestRemoveAssociationNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

RemoveAssociation(RemoveAssociationNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Removes an association for the specified firewall policy.

Parameters
NameDescription
requestRemoveAssociationNetworkFirewallPolicyRequest

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

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

Removes an association for the specified firewall policy.

Parameters
NameDescription
requestRemoveAssociationNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

RemoveAssociationAsync(RemoveAssociationNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Removes an association for the specified firewall policy.

Parameters
NameDescription
requestRemoveAssociationNetworkFirewallPolicyRequest

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

public virtual Operation RemoveRule(RemoveRuleNetworkFirewallPolicyRequest request, CallOptions options)

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

RemoveRule(RemoveRuleNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleNetworkFirewallPolicyRequest

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

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

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

RemoveRuleAsync(RemoveRuleNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleNetworkFirewallPolicyRequest

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

public virtual Policy SetIamPolicy(SetIamPolicyNetworkFirewallPolicyRequest request, CallOptions options)

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

Parameters
NameDescription
requestSetIamPolicyNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

SetIamPolicy(SetIamPolicyNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Policy SetIamPolicy(SetIamPolicyNetworkFirewallPolicyRequest 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
requestSetIamPolicyNetworkFirewallPolicyRequest

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

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

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

Parameters
NameDescription
requestSetIamPolicyNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPolicy

The call object.

SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest 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
requestSetIamPolicyNetworkFirewallPolicyRequest

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

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsNetworkFirewallPolicyRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TestPermissionsResponse

The response received from the server.

TestIamPermissions(TestIamPermissionsNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsNetworkFirewallPolicyRequest

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

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

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsNetworkFirewallPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTestPermissionsResponse

The call object.

TestIamPermissionsAsync(TestIamPermissionsNetworkFirewallPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsNetworkFirewallPolicyRequest

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.