Compute Engine v1 API - Class NetworkFirewallPoliciesClientImpl (3.2.0)

public sealed class NetworkFirewallPoliciesClientImpl : NetworkFirewallPoliciesClient

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

NetworkFirewallPolicies client wrapper implementation, for convenient use.

Inheritance

object > NetworkFirewallPoliciesClient > NetworkFirewallPoliciesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The NetworkFirewallPolicies API.

Constructors

NetworkFirewallPoliciesClientImpl(NetworkFirewallPoliciesClient, NetworkFirewallPoliciesSettings, ILogger)

public NetworkFirewallPoliciesClientImpl(NetworkFirewallPolicies.NetworkFirewallPoliciesClient grpcClient, NetworkFirewallPoliciesSettings settings, ILogger logger)

Constructs a client wrapper for the NetworkFirewallPolicies service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient NetworkFirewallPoliciesNetworkFirewallPoliciesClient

The underlying gRPC client.

settings NetworkFirewallPoliciesSettings

The base NetworkFirewallPoliciesSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

AddAssociationOperationsClient

public override OperationsClient AddAssociationOperationsClient { get; }

The long-running operations client for AddAssociation.

Property Value
Type Description
OperationsClient
Overrides

AddRuleOperationsClient

public override OperationsClient AddRuleOperationsClient { get; }

The long-running operations client for AddRule.

Property Value
Type Description
OperationsClient
Overrides

CloneRulesOperationsClient

public override OperationsClient CloneRulesOperationsClient { get; }

The long-running operations client for CloneRules.

Property Value
Type Description
OperationsClient
Overrides

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override NetworkFirewallPolicies.NetworkFirewallPoliciesClient GrpcClient { get; }

The underlying gRPC NetworkFirewallPolicies client

Property Value
Type Description
NetworkFirewallPoliciesNetworkFirewallPoliciesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

PatchOperationsClient

public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
Type Description
OperationsClient
Overrides

PatchRuleOperationsClient

public override OperationsClient PatchRuleOperationsClient { get; }

The long-running operations client for PatchRule.

Property Value
Type Description
OperationsClient
Overrides

RemoveAssociationOperationsClient

public override OperationsClient RemoveAssociationOperationsClient { get; }

The long-running operations client for RemoveAssociation.

Property Value
Type Description
OperationsClient
Overrides

RemoveRuleOperationsClient

public override OperationsClient RemoveRuleOperationsClient { get; }

The long-running operations client for RemoveRule.

Property Value
Type Description
OperationsClient
Overrides

Methods

AddAssociation(AddAssociationNetworkFirewallPolicyRequest, CallSettings)

public override Operation<Operation, Operation> AddAssociation(AddAssociationNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Inserts an association for the specified firewall policy.

Parameters
Name Description
request AddAssociationNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

AddAssociationAsync(AddAssociationNetworkFirewallPolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> AddAssociationAsync(AddAssociationNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Inserts an association for the specified firewall policy.

Parameters
Name Description
request AddAssociationNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

AddRule(AddRuleNetworkFirewallPolicyRequest, CallSettings)

public override Operation<Operation, Operation> AddRule(AddRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Inserts a rule into a firewall policy.

Parameters
Name Description
request AddRuleNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

AddRuleAsync(AddRuleNetworkFirewallPolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> AddRuleAsync(AddRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Inserts a rule into a firewall policy.

Parameters
Name Description
request AddRuleNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

CloneRules(CloneRulesNetworkFirewallPolicyRequest, CallSettings)

public override Operation<Operation, Operation> CloneRules(CloneRulesNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Copies rules to the specified firewall policy.

Parameters
Name Description
request CloneRulesNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

CloneRulesAsync(CloneRulesNetworkFirewallPolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> CloneRulesAsync(CloneRulesNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Copies rules to the specified firewall policy.

Parameters
Name Description
request CloneRulesNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Delete(DeleteNetworkFirewallPolicyRequest, CallSettings)

public override Operation<Operation, Operation> Delete(DeleteNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Deletes the specified policy.

Parameters
Name Description
request DeleteNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteNetworkFirewallPolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Deletes the specified policy.

Parameters
Name Description
request DeleteNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetNetworkFirewallPolicyRequest, CallSettings)

public override FirewallPolicy Get(GetNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Returns the specified network firewall policy.

Parameters
Name Description
request GetNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FirewallPolicy

The RPC response.

Overrides

GetAssociation(GetAssociationNetworkFirewallPolicyRequest, CallSettings)

public override FirewallPolicyAssociation GetAssociation(GetAssociationNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Gets an association with the specified name.

Parameters
Name Description
request GetAssociationNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FirewallPolicyAssociation

The RPC response.

Overrides

GetAssociationAsync(GetAssociationNetworkFirewallPolicyRequest, CallSettings)

public override Task<FirewallPolicyAssociation> GetAssociationAsync(GetAssociationNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Gets an association with the specified name.

Parameters
Name Description
request GetAssociationNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFirewallPolicyAssociation

A Task containing the RPC response.

Overrides

GetAsync(GetNetworkFirewallPolicyRequest, CallSettings)

public override Task<FirewallPolicy> GetAsync(GetNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Returns the specified network firewall policy.

Parameters
Name Description
request GetNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFirewallPolicy

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyNetworkFirewallPolicyRequest, CallSettings)

public override Policy GetIamPolicy(GetIamPolicyNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetIamPolicyNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest, CallSettings)

public override Task<Policy> GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetIamPolicyNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

GetRule(GetRuleNetworkFirewallPolicyRequest, CallSettings)

public override FirewallPolicyRule GetRule(GetRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Gets a rule of the specified priority.

Parameters
Name Description
request GetRuleNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FirewallPolicyRule

The RPC response.

Overrides

GetRuleAsync(GetRuleNetworkFirewallPolicyRequest, CallSettings)

public override Task<FirewallPolicyRule> GetRuleAsync(GetRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Gets a rule of the specified priority.

Parameters
Name Description
request GetRuleNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFirewallPolicyRule

A Task containing the RPC response.

Overrides

Insert(InsertNetworkFirewallPolicyRequest, CallSettings)

public override Operation<Operation, Operation> Insert(InsertNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request InsertNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertNetworkFirewallPolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> InsertAsync(InsertNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request InsertNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListNetworkFirewallPoliciesRequest, CallSettings)

public override PagedEnumerable<FirewallPolicyList, FirewallPolicy> List(ListNetworkFirewallPoliciesRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListNetworkFirewallPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFirewallPolicyListFirewallPolicy

A pageable sequence of FirewallPolicy resources.

Overrides

ListAsync(ListNetworkFirewallPoliciesRequest, CallSettings)

public override PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy> ListAsync(ListNetworkFirewallPoliciesRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListNetworkFirewallPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFirewallPolicyListFirewallPolicy

A pageable asynchronous sequence of FirewallPolicy resources.

Overrides

Patch(PatchNetworkFirewallPolicyRequest, CallSettings)

public override Operation<Operation, Operation> Patch(PatchNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request PatchNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

PatchAsync(PatchNetworkFirewallPolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> PatchAsync(PatchNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request PatchNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

PatchRule(PatchRuleNetworkFirewallPolicyRequest, CallSettings)

public override Operation<Operation, Operation> PatchRule(PatchRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Patches a rule of the specified priority.

Parameters
Name Description
request PatchRuleNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

PatchRuleAsync(PatchRuleNetworkFirewallPolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> PatchRuleAsync(PatchRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Patches a rule of the specified priority.

Parameters
Name Description
request PatchRuleNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

RemoveAssociation(RemoveAssociationNetworkFirewallPolicyRequest, CallSettings)

public override Operation<Operation, Operation> RemoveAssociation(RemoveAssociationNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Removes an association for the specified firewall policy.

Parameters
Name Description
request RemoveAssociationNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

RemoveAssociationAsync(RemoveAssociationNetworkFirewallPolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> RemoveAssociationAsync(RemoveAssociationNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Removes an association for the specified firewall policy.

Parameters
Name Description
request RemoveAssociationNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

RemoveRule(RemoveRuleNetworkFirewallPolicyRequest, CallSettings)

public override Operation<Operation, Operation> RemoveRule(RemoveRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Deletes a rule of the specified priority.

Parameters
Name Description
request RemoveRuleNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

RemoveRuleAsync(RemoveRuleNetworkFirewallPolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> RemoveRuleAsync(RemoveRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Deletes a rule of the specified priority.

Parameters
Name Description
request RemoveRuleNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetIamPolicy(SetIamPolicyNetworkFirewallPolicyRequest, CallSettings)

public override Policy SetIamPolicy(SetIamPolicyNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetIamPolicyNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest, CallSettings)

public override Task<Policy> SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetIamPolicyNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsNetworkFirewallPolicyRequest, CallSettings)

public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TestPermissionsResponse

The RPC response.

Overrides

TestIamPermissionsAsync(TestIamPermissionsNetworkFirewallPolicyRequest, CallSettings)

public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsNetworkFirewallPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides