Compute Engine v1 API - Class RegionNetworkFirewallPoliciesClientImpl (2.17.0)

public sealed class RegionNetworkFirewallPoliciesClientImpl : RegionNetworkFirewallPoliciesClient

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

RegionNetworkFirewallPolicies client wrapper implementation, for convenient use.

Inheritance

object > RegionNetworkFirewallPoliciesClient > RegionNetworkFirewallPoliciesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The RegionNetworkFirewallPolicies API.

Constructors

RegionNetworkFirewallPoliciesClientImpl(RegionNetworkFirewallPoliciesClient, RegionNetworkFirewallPoliciesSettings, ILogger)

public RegionNetworkFirewallPoliciesClientImpl(RegionNetworkFirewallPolicies.RegionNetworkFirewallPoliciesClient grpcClient, RegionNetworkFirewallPoliciesSettings settings, ILogger logger)

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

Parameters
Name Description
grpcClient RegionNetworkFirewallPoliciesRegionNetworkFirewallPoliciesClient

The underlying gRPC client.

settings RegionNetworkFirewallPoliciesSettings

The base RegionNetworkFirewallPoliciesSettings 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 RegionNetworkFirewallPolicies.RegionNetworkFirewallPoliciesClient GrpcClient { get; }

The underlying gRPC RegionNetworkFirewallPolicies client

Property Value
Type Description
RegionNetworkFirewallPoliciesRegionNetworkFirewallPoliciesClient
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(AddAssociationRegionNetworkFirewallPolicyRequest, CallSettings)

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

Inserts an association for the specified network firewall policy.

Parameters
Name Description
request AddAssociationRegionNetworkFirewallPolicyRequest

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(AddAssociationRegionNetworkFirewallPolicyRequest, CallSettings)

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

Inserts an association for the specified network firewall policy.

Parameters
Name Description
request AddAssociationRegionNetworkFirewallPolicyRequest

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(AddRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Inserts a rule into a network firewall policy.

Parameters
Name Description
request AddRuleRegionNetworkFirewallPolicyRequest

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(AddRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Inserts a rule into a network firewall policy.

Parameters
Name Description
request AddRuleRegionNetworkFirewallPolicyRequest

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(CloneRulesRegionNetworkFirewallPolicyRequest, CallSettings)

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

Copies rules to the specified network firewall policy.

Parameters
Name Description
request CloneRulesRegionNetworkFirewallPolicyRequest

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(CloneRulesRegionNetworkFirewallPolicyRequest, CallSettings)

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

Copies rules to the specified network firewall policy.

Parameters
Name Description
request CloneRulesRegionNetworkFirewallPolicyRequest

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(DeleteRegionNetworkFirewallPolicyRequest, CallSettings)

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

Deletes the specified network firewall policy.

Parameters
Name Description
request DeleteRegionNetworkFirewallPolicyRequest

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(DeleteRegionNetworkFirewallPolicyRequest, CallSettings)

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

Deletes the specified network firewall policy.

Parameters
Name Description
request DeleteRegionNetworkFirewallPolicyRequest

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(GetRegionNetworkFirewallPolicyRequest, CallSettings)

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

Returns the specified network firewall policy.

Parameters
Name Description
request GetRegionNetworkFirewallPolicyRequest

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(GetAssociationRegionNetworkFirewallPolicyRequest, CallSettings)

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

Gets an association with the specified name.

Parameters
Name Description
request GetAssociationRegionNetworkFirewallPolicyRequest

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(GetAssociationRegionNetworkFirewallPolicyRequest, CallSettings)

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

Gets an association with the specified name.

Parameters
Name Description
request GetAssociationRegionNetworkFirewallPolicyRequest

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(GetRegionNetworkFirewallPolicyRequest, CallSettings)

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

Returns the specified network firewall policy.

Parameters
Name Description
request GetRegionNetworkFirewallPolicyRequest

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

GetEffectiveFirewalls(GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest, CallSettings)

public override RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse GetEffectiveFirewalls(GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Returns the effective firewalls on a given network.

Parameters
Name Description
request GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest

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
RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse

The RPC response.

Overrides

GetEffectiveFirewallsAsync(GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest, CallSettings)

public override Task<RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse> GetEffectiveFirewallsAsync(GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Returns the effective firewalls on a given network.

Parameters
Name Description
request GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest

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
TaskRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyRegionNetworkFirewallPolicyRequest, CallSettings)

public override Policy GetIamPolicy(GetIamPolicyRegionNetworkFirewallPolicyRequest 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 GetIamPolicyRegionNetworkFirewallPolicyRequest

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(GetIamPolicyRegionNetworkFirewallPolicyRequest, CallSettings)

public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRegionNetworkFirewallPolicyRequest 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 GetIamPolicyRegionNetworkFirewallPolicyRequest

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(GetRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Gets a rule of the specified priority.

Parameters
Name Description
request GetRuleRegionNetworkFirewallPolicyRequest

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(GetRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Gets a rule of the specified priority.

Parameters
Name Description
request GetRuleRegionNetworkFirewallPolicyRequest

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(InsertRegionNetworkFirewallPolicyRequest, CallSettings)

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

Creates a new network firewall policy in the specified project and region.

Parameters
Name Description
request InsertRegionNetworkFirewallPolicyRequest

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(InsertRegionNetworkFirewallPolicyRequest, CallSettings)

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

Creates a new network firewall policy in the specified project and region.

Parameters
Name Description
request InsertRegionNetworkFirewallPolicyRequest

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(ListRegionNetworkFirewallPoliciesRequest, CallSettings)

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

Lists all the network firewall policies that have been configured for the specified project in the given region.

Parameters
Name Description
request ListRegionNetworkFirewallPoliciesRequest

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(ListRegionNetworkFirewallPoliciesRequest, CallSettings)

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

Lists all the network firewall policies that have been configured for the specified project in the given region.

Parameters
Name Description
request ListRegionNetworkFirewallPoliciesRequest

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(PatchRegionNetworkFirewallPolicyRequest, CallSettings)

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

Patches the specified network firewall policy.

Parameters
Name Description
request PatchRegionNetworkFirewallPolicyRequest

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(PatchRegionNetworkFirewallPolicyRequest, CallSettings)

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

Patches the specified network firewall policy.

Parameters
Name Description
request PatchRegionNetworkFirewallPolicyRequest

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(PatchRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Patches a rule of the specified priority.

Parameters
Name Description
request PatchRuleRegionNetworkFirewallPolicyRequest

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(PatchRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Patches a rule of the specified priority.

Parameters
Name Description
request PatchRuleRegionNetworkFirewallPolicyRequest

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(RemoveAssociationRegionNetworkFirewallPolicyRequest, CallSettings)

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

Removes an association for the specified network firewall policy.

Parameters
Name Description
request RemoveAssociationRegionNetworkFirewallPolicyRequest

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(RemoveAssociationRegionNetworkFirewallPolicyRequest, CallSettings)

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

Removes an association for the specified network firewall policy.

Parameters
Name Description
request RemoveAssociationRegionNetworkFirewallPolicyRequest

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(RemoveRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Deletes a rule of the specified priority.

Parameters
Name Description
request RemoveRuleRegionNetworkFirewallPolicyRequest

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(RemoveRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Deletes a rule of the specified priority.

Parameters
Name Description
request RemoveRuleRegionNetworkFirewallPolicyRequest

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(SetIamPolicyRegionNetworkFirewallPolicyRequest, CallSettings)

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

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

Parameters
Name Description
request SetIamPolicyRegionNetworkFirewallPolicyRequest

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(SetIamPolicyRegionNetworkFirewallPolicyRequest, CallSettings)

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

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

Parameters
Name Description
request SetIamPolicyRegionNetworkFirewallPolicyRequest

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(TestIamPermissionsRegionNetworkFirewallPolicyRequest, CallSettings)

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

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionNetworkFirewallPolicyRequest

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(TestIamPermissionsRegionNetworkFirewallPolicyRequest, CallSettings)

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

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionNetworkFirewallPolicyRequest

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