Class NetworkFirewallPolicies.NetworkFirewallPoliciesClient (2.0.0)

public class NetworkFirewallPoliciesClient : ClientBase<NetworkFirewallPolicies.NetworkFirewallPoliciesClient>

Client for NetworkFirewallPolicies

Inheritance

Object > ClientBase > ClientBase<NetworkFirewallPolicies.NetworkFirewallPoliciesClient> > 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(ClientBase.ClientBaseConfiguration)

protected NetworkFirewallPoliciesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

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
AsyncUnaryCall<Operation>

The call object.

AddAssociationAsync(AddAssociationNetworkFirewallPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

AddRuleAsync(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
AsyncUnaryCall<Operation>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

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
AsyncUnaryCall<Operation>

The call object.

CloneRulesAsync(CloneRulesNetworkFirewallPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

CreateOperationsClientForGlobalOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()

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

Returns
TypeDescription
Operations.OperationsClient

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

Delete(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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteAsync(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
AsyncUnaryCall<Operation>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

Get(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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
AsyncUnaryCall<FirewallPolicyAssociation>

The call object.

GetAssociationAsync(GetAssociationNetworkFirewallPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<FirewallPolicyAssociation>

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
AsyncUnaryCall<FirewallPolicy>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<FirewallPolicy>

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
AsyncUnaryCall<Policy>

The call object.

GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Policy>

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
AsyncUnaryCall<FirewallPolicyRule>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<FirewallPolicyRule>

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

InsertAsync(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
AsyncUnaryCall<Operation>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

List(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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
AsyncUnaryCall<FirewallPolicyList>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<FirewallPolicyList>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

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

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

PatchAsync(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
AsyncUnaryCall<Operation>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

PatchRule(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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

PatchRuleAsync(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
AsyncUnaryCall<Operation>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

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
AsyncUnaryCall<Operation>

The call object.

RemoveAssociationAsync(RemoveAssociationNetworkFirewallPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

RemoveRule(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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

RemoveRuleAsync(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
AsyncUnaryCall<Operation>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
AsyncUnaryCall<Policy>

The call object.

SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Policy>

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

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
AsyncUnaryCall<TestPermissionsResponse>

The call object.

TestIamPermissionsAsync(TestIamPermissionsNetworkFirewallPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<TestPermissionsResponse>

The call object.