Compute Engine v1 API - Class FirewallPoliciesClientImpl (2.16.0)

public sealed class FirewallPoliciesClientImpl : FirewallPoliciesClient

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

FirewallPolicies client wrapper implementation, for convenient use.

Inheritance

object > FirewallPoliciesClient > FirewallPoliciesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The FirewallPolicies API.

Constructors

FirewallPoliciesClientImpl(FirewallPoliciesClient, FirewallPoliciesSettings, ILogger)

public FirewallPoliciesClientImpl(FirewallPolicies.FirewallPoliciesClient grpcClient, FirewallPoliciesSettings settings, ILogger logger)

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

Parameters
Name Description
grpcClient FirewallPoliciesFirewallPoliciesClient

The underlying gRPC client.

settings FirewallPoliciesSettings

The base FirewallPoliciesSettings 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 FirewallPolicies.FirewallPoliciesClient GrpcClient { get; }

The underlying gRPC FirewallPolicies client

Property Value
Type Description
FirewallPoliciesFirewallPoliciesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

MoveOperationsClient

public override OperationsClient MoveOperationsClient { get; }

The long-running operations client for Move.

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

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

Inserts an association for the specified firewall policy.

Parameters
Name Description
request AddAssociationFirewallPolicyRequest

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

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

Inserts an association for the specified firewall policy.

Parameters
Name Description
request AddAssociationFirewallPolicyRequest

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

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

Inserts a rule into a firewall policy.

Parameters
Name Description
request AddRuleFirewallPolicyRequest

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

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

Inserts a rule into a firewall policy.

Parameters
Name Description
request AddRuleFirewallPolicyRequest

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

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

Copies rules to the specified firewall policy.

Parameters
Name Description
request CloneRulesFirewallPolicyRequest

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

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

Copies rules to the specified firewall policy.

Parameters
Name Description
request CloneRulesFirewallPolicyRequest

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

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

Deletes the specified policy.

Parameters
Name Description
request DeleteFirewallPolicyRequest

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

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

Deletes the specified policy.

Parameters
Name Description
request DeleteFirewallPolicyRequest

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

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

Returns the specified firewall policy.

Parameters
Name Description
request GetFirewallPolicyRequest

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

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

Gets an association with the specified name.

Parameters
Name Description
request GetAssociationFirewallPolicyRequest

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

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

Gets an association with the specified name.

Parameters
Name Description
request GetAssociationFirewallPolicyRequest

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

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

Returns the specified firewall policy.

Parameters
Name Description
request GetFirewallPolicyRequest

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

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

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

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

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

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

Gets a rule of the specified priority.

Parameters
Name Description
request GetRuleFirewallPolicyRequest

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

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

Gets a rule of the specified priority.

Parameters
Name Description
request GetRuleFirewallPolicyRequest

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

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

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

Parameters
Name Description
request InsertFirewallPolicyRequest

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

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

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

Parameters
Name Description
request InsertFirewallPolicyRequest

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

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

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

Parameters
Name Description
request ListFirewallPoliciesRequest

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

ListAssociations(ListAssociationsFirewallPolicyRequest, CallSettings)

public override FirewallPoliciesListAssociationsResponse ListAssociations(ListAssociationsFirewallPolicyRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListAssociationsFirewallPolicyRequest

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
FirewallPoliciesListAssociationsResponse

The RPC response.

Overrides

ListAssociationsAsync(ListAssociationsFirewallPolicyRequest, CallSettings)

public override Task<FirewallPoliciesListAssociationsResponse> ListAssociationsAsync(ListAssociationsFirewallPolicyRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListAssociationsFirewallPolicyRequest

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
TaskFirewallPoliciesListAssociationsResponse

A Task containing the RPC response.

Overrides

ListAsync(ListFirewallPoliciesRequest, CallSettings)

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

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

Parameters
Name Description
request ListFirewallPoliciesRequest

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

Move(MoveFirewallPolicyRequest, CallSettings)

public override Operation<Operation, Operation> Move(MoveFirewallPolicyRequest request, CallSettings callSettings = null)

Moves the specified firewall policy.

Parameters
Name Description
request MoveFirewallPolicyRequest

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

MoveAsync(MoveFirewallPolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> MoveAsync(MoveFirewallPolicyRequest request, CallSettings callSettings = null)

Moves the specified firewall policy.

Parameters
Name Description
request MoveFirewallPolicyRequest

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

Patch(PatchFirewallPolicyRequest, CallSettings)

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

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

Parameters
Name Description
request PatchFirewallPolicyRequest

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

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

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

Parameters
Name Description
request PatchFirewallPolicyRequest

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

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

Patches a rule of the specified priority.

Parameters
Name Description
request PatchRuleFirewallPolicyRequest

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

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

Patches a rule of the specified priority.

Parameters
Name Description
request PatchRuleFirewallPolicyRequest

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

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

Removes an association for the specified firewall policy.

Parameters
Name Description
request RemoveAssociationFirewallPolicyRequest

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

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

Removes an association for the specified firewall policy.

Parameters
Name Description
request RemoveAssociationFirewallPolicyRequest

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

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

Deletes a rule of the specified priority.

Parameters
Name Description
request RemoveRuleFirewallPolicyRequest

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

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

Deletes a rule of the specified priority.

Parameters
Name Description
request RemoveRuleFirewallPolicyRequest

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

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

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

Parameters
Name Description
request SetIamPolicyFirewallPolicyRequest

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

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

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

Parameters
Name Description
request SetIamPolicyFirewallPolicyRequest

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

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

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsFirewallPolicyRequest

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

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

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsFirewallPolicyRequest

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