# Compute Engine v1 API - Class NetworkFirewallPoliciesClient (3.28.0)

3.28.0 (latest) 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public abstract class NetworkFirewallPoliciesClient

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

NetworkFirewallPolicies client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> NetworkFirewallPoliciesClient

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[NetworkFirewallPoliciesClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClientImpl)

## Namespace

[Google.Cloud.Compute.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1)

## Assembly

Google.Cloud.Compute.V1.dll

## Remarks

The NetworkFirewallPolicies API.

## Properties

### AddAssociationOperationsClient

    public virtual OperationsClient AddAssociationOperationsClient { get; }

The long-running operations client for `AddAssociation`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### AddPacketMirroringRuleOperationsClient

    public virtual OperationsClient AddPacketMirroringRuleOperationsClient { get; }

The long-running operations client for `AddPacketMirroringRule`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### AddRuleOperationsClient

    public virtual OperationsClient AddRuleOperationsClient { get; }

The long-running operations client for `AddRule`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### CloneRulesOperationsClient

    public virtual OperationsClient CloneRulesOperationsClient { get; }

The long-running operations client for `CloneRules`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the NetworkFirewallPolicies service, which is a host of "compute.googleapis.com"
and a port of 443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default NetworkFirewallPolicies scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default NetworkFirewallPolicies scopes are:

- <https://www.googleapis.com/auth/compute>
- <https://www.googleapis.com/auth/cloud-platform>

### DeleteOperationsClient

    public virtual OperationsClient DeleteOperationsClient { get; }

The long-running operations client for `Delete`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### GrpcClient

    public virtual NetworkFirewallPolicies.NetworkFirewallPoliciesClient GrpcClient { get; }

The underlying gRPC NetworkFirewallPolicies client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPolicieshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPolicies.NetworkFirewallPoliciesClient` |   |

### InsertOperationsClient

    public virtual OperationsClient InsertOperationsClient { get; }

The long-running operations client for `Insert`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### PatchOperationsClient

    public virtual OperationsClient PatchOperationsClient { get; }

The long-running operations client for `Patch`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### PatchPacketMirroringRuleOperationsClient

    public virtual OperationsClient PatchPacketMirroringRuleOperationsClient { get; }

The long-running operations client for `PatchPacketMirroringRule`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### PatchRuleOperationsClient

    public virtual OperationsClient PatchRuleOperationsClient { get; }

The long-running operations client for `PatchRule`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### RemoveAssociationOperationsClient

    public virtual OperationsClient RemoveAssociationOperationsClient { get; }

The long-running operations client for `RemoveAssociation`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### RemovePacketMirroringRuleOperationsClient

    public virtual OperationsClient RemovePacketMirroringRuleOperationsClient { get; }

The long-running operations client for `RemovePacketMirroringRule`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### RemoveRuleOperationsClient

    public virtual OperationsClient RemoveRuleOperationsClient { get; }

The long-running operations client for `RemoveRule`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### AddAssociation(AddAssociationNetworkFirewallPolicyRequest, CallSettings)

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

Inserts an association for the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AddAssociationNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    AddAssociationNetworkFirewallPolicyRequest request = new AddAssociationNetworkFirewallPolicyRequest
    {
        RequestId = "",
        ReplaceExistingAssociation = false,
        Project = "",
        FirewallPolicyAssociationResource = new FirewallPolicyAssociation(),
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.AddAssociation(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceAddAssociation(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddAssociation(string, string, FirewallPolicyAssociation, CallSettings)

    public virtual Operation<Operation, Operation> AddAssociation(string project, string firewallPolicy, FirewallPolicyAssociation firewallPolicyAssociationResource, CallSettings callSettings = null)

Inserts an association for the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyAssociationResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyAssociation` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyAssociation firewallPolicyAssociationResource = new FirewallPolicyAssociation();
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.AddAssociation(project, firewallPolicy, firewallPolicyAssociationResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceAddAssociation(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddAssociationAsync(AddAssociationNetworkFirewallPolicyRequest, CallSettings)

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

Inserts an association for the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AddAssociationNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    AddAssociationNetworkFirewallPolicyRequest request = new AddAssociationNetworkFirewallPolicyRequest
    {
        RequestId = "",
        ReplaceExistingAssociation = false,
        Project = "",
        FirewallPolicyAssociationResource = new FirewallPolicyAssociation(),
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddAssociationAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddAssociationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddAssociationAsync(AddAssociationNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> AddAssociationAsync(AddAssociationNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Inserts an association for the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AddAssociationNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    AddAssociationNetworkFirewallPolicyRequest request = new AddAssociationNetworkFirewallPolicyRequest
    {
        RequestId = "",
        ReplaceExistingAssociation = false,
        Project = "",
        FirewallPolicyAssociationResource = new FirewallPolicyAssociation(),
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddAssociationAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddAssociationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddAssociationAsync(string, string, FirewallPolicyAssociation, CallSettings)

    public virtual Task<Operation<Operation, Operation>> AddAssociationAsync(string project, string firewallPolicy, FirewallPolicyAssociation firewallPolicyAssociationResource, CallSettings callSettings = null)

Inserts an association for the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyAssociationResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyAssociation` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyAssociation firewallPolicyAssociationResource = new FirewallPolicyAssociation();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddAssociationAsync(project, firewallPolicy, firewallPolicyAssociationResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddAssociationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddAssociationAsync(string, string, FirewallPolicyAssociation, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> AddAssociationAsync(string project, string firewallPolicy, FirewallPolicyAssociation firewallPolicyAssociationResource, CancellationToken cancellationToken)

Inserts an association for the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyAssociationResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyAssociation` The body resource for this request |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyAssociation firewallPolicyAssociationResource = new FirewallPolicyAssociation();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddAssociationAsync(project, firewallPolicy, firewallPolicyAssociationResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddAssociationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddPacketMirroringRule(AddPacketMirroringRuleNetworkFirewallPolicyRequest, CallSettings)

    public virtual Operation<Operation, Operation> AddPacketMirroringRule(AddPacketMirroringRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Inserts a packet mirroring rule into a firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AddPacketMirroringRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    AddPacketMirroringRuleNetworkFirewallPolicyRequest request = new AddPacketMirroringRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyRuleResource = new FirewallPolicyRule(),
        MinPriority = 0,
        MaxPriority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.AddPacketMirroringRule(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceAddPacketMirroringRule(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddPacketMirroringRule(string, string, FirewallPolicyRule, CallSettings)

    public virtual Operation<Operation, Operation> AddPacketMirroringRule(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CallSettings callSettings = null)

Inserts a packet mirroring rule into a firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyRuleResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.AddPacketMirroringRule(project, firewallPolicy, firewallPolicyRuleResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceAddPacketMirroringRule(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddPacketMirroringRuleAsync(AddPacketMirroringRuleNetworkFirewallPolicyRequest, CallSettings)

    public virtual Task<Operation<Operation, Operation>> AddPacketMirroringRuleAsync(AddPacketMirroringRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Inserts a packet mirroring rule into a firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AddPacketMirroringRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    AddPacketMirroringRuleNetworkFirewallPolicyRequest request = new AddPacketMirroringRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyRuleResource = new FirewallPolicyRule(),
        MinPriority = 0,
        MaxPriority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddPacketMirroringRuleAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddPacketMirroringRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddPacketMirroringRuleAsync(AddPacketMirroringRuleNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> AddPacketMirroringRuleAsync(AddPacketMirroringRuleNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Inserts a packet mirroring rule into a firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AddPacketMirroringRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    AddPacketMirroringRuleNetworkFirewallPolicyRequest request = new AddPacketMirroringRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyRuleResource = new FirewallPolicyRule(),
        MinPriority = 0,
        MaxPriority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddPacketMirroringRuleAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddPacketMirroringRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddPacketMirroringRuleAsync(string, string, FirewallPolicyRule, CallSettings)

    public virtual Task<Operation<Operation, Operation>> AddPacketMirroringRuleAsync(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CallSettings callSettings = null)

Inserts a packet mirroring rule into a firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyRuleResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddPacketMirroringRuleAsync(project, firewallPolicy, firewallPolicyRuleResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddPacketMirroringRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddPacketMirroringRuleAsync(string, string, FirewallPolicyRule, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> AddPacketMirroringRuleAsync(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CancellationToken cancellationToken)

Inserts a packet mirroring rule into a firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyRuleResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` The body resource for this request |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddPacketMirroringRuleAsync(project, firewallPolicy, firewallPolicyRuleResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddPacketMirroringRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddRule(AddRuleNetworkFirewallPolicyRequest, CallSettings)

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

Inserts a rule into a firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AddRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    AddRuleNetworkFirewallPolicyRequest request = new AddRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyRuleResource = new FirewallPolicyRule(),
        MinPriority = 0,
        MaxPriority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.AddRule(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceAddRule(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddRule(string, string, FirewallPolicyRule, CallSettings)

    public virtual Operation<Operation, Operation> AddRule(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CallSettings callSettings = null)

Inserts a rule into a firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyRuleResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.AddRule(project, firewallPolicy, firewallPolicyRuleResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceAddRule(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddRuleAsync(AddRuleNetworkFirewallPolicyRequest, CallSettings)

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

Inserts a rule into a firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AddRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    AddRuleNetworkFirewallPolicyRequest request = new AddRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyRuleResource = new FirewallPolicyRule(),
        MinPriority = 0,
        MaxPriority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddRuleAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddRuleAsync(AddRuleNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> AddRuleAsync(AddRuleNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Inserts a rule into a firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AddRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    AddRuleNetworkFirewallPolicyRequest request = new AddRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyRuleResource = new FirewallPolicyRule(),
        MinPriority = 0,
        MaxPriority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddRuleAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddRuleAsync(string, string, FirewallPolicyRule, CallSettings)

    public virtual Task<Operation<Operation, Operation>> AddRuleAsync(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CallSettings callSettings = null)

Inserts a rule into a firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyRuleResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddRuleAsync(project, firewallPolicy, firewallPolicyRuleResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AddRuleAsync(string, string, FirewallPolicyRule, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> AddRuleAsync(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CancellationToken cancellationToken)

Inserts a rule into a firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyRuleResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` The body resource for this request |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddRuleAsync(project, firewallPolicy, firewallPolicyRuleResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### AggregatedList(AggregatedListNetworkFirewallPoliciesRequest, CallSettings)

    public virtual PagedEnumerable<NetworkFirewallPolicyAggregatedList, KeyValuePair<string, FirewallPoliciesScopedList>> AggregatedList(AggregatedListNetworkFirewallPoliciesRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of network firewall policies, listing network
firewall policies from all applicable scopes (global and regional) and
grouping the results per scope.

To prevent failure, it is recommended that you set the
`returnPartialSuccess` parameter to `true`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AggregatedListNetworkFirewallPoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPolicyAggregatedListhttps://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2https://learn.microsoft.com/dotnet/api/system.stringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPoliciesScopedList` | A pageable sequence of [KeyValuePair\<TKey, TValue\>](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2) resources. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    AggregatedListNetworkFirewallPoliciesRequest request = new AggregatedListNetworkFirewallPoliciesRequest
    {
        OrderBy = "",
        Project = "",
        ServiceProjectNumber = 0L,
        Filter = "",
        IncludeAllScopes = false,
        ReturnPartialSuccess = false,
    };
    // Make the request
    PagedEnumerable<NetworkFirewallPolicyAggregatedList, KeyValuePair<string, FirewallPoliciesScopedList>> response = networkFirewallPoliciesClient.AggregatedList(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (KeyValuePair<string, FirewallPoliciesScopedList> item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (NetworkFirewallPolicyAggregatedList page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (KeyValuePair<string, FirewallPoliciesScopedList> item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<KeyValuePair<string, FirewallPoliciesScopedList>> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (KeyValuePair<string, FirewallPoliciesScopedList> item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### AggregatedList(string, string, int?, CallSettings)

    public virtual PagedEnumerable<NetworkFirewallPolicyAggregatedList, KeyValuePair<string, FirewallPoliciesScopedList>> AggregatedList(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves an aggregated list of network firewall policies, listing network
firewall policies from all applicable scopes (global and regional) and
grouping the results per scope.

To prevent failure, it is recommended that you set the
`returnPartialSuccess` parameter to `true`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPolicyAggregatedListhttps://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2https://learn.microsoft.com/dotnet/api/system.stringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPoliciesScopedList` | A pageable sequence of [KeyValuePair\<TKey, TValue\>](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2) resources. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    // Make the request
    PagedEnumerable<NetworkFirewallPolicyAggregatedList, KeyValuePair<string, FirewallPoliciesScopedList>> response = networkFirewallPoliciesClient.AggregatedList(project);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (KeyValuePair<string, FirewallPoliciesScopedList> item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (NetworkFirewallPolicyAggregatedList page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (KeyValuePair<string, FirewallPoliciesScopedList> item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<KeyValuePair<string, FirewallPoliciesScopedList>> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (KeyValuePair<string, FirewallPoliciesScopedList> item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### AggregatedListAsync(AggregatedListNetworkFirewallPoliciesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<NetworkFirewallPolicyAggregatedList, KeyValuePair<string, FirewallPoliciesScopedList>> AggregatedListAsync(AggregatedListNetworkFirewallPoliciesRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of network firewall policies, listing network
firewall policies from all applicable scopes (global and regional) and
grouping the results per scope.

To prevent failure, it is recommended that you set the
`returnPartialSuccess` parameter to `true`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.AggregatedListNetworkFirewallPoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPolicyAggregatedListhttps://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2https://learn.microsoft.com/dotnet/api/system.stringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPoliciesScopedList` | A pageable asynchronous sequence of [KeyValuePair\<TKey, TValue\>](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2) resources. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    AggregatedListNetworkFirewallPoliciesRequest request = new AggregatedListNetworkFirewallPoliciesRequest
    {
        OrderBy = "",
        Project = "",
        ServiceProjectNumber = 0L,
        Filter = "",
        IncludeAllScopes = false,
        ReturnPartialSuccess = false,
    };
    // Make the request
    PagedAsyncEnumerable<NetworkFirewallPolicyAggregatedList, KeyValuePair<string, FirewallPoliciesScopedList>> response = networkFirewallPoliciesClient.AggregatedListAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (KeyValuePair<string, FirewallPoliciesScopedList> item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (NetworkFirewallPolicyAggregatedList page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (KeyValuePair<string, FirewallPoliciesScopedList> item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<KeyValuePair<string, FirewallPoliciesScopedList>> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (KeyValuePair<string, FirewallPoliciesScopedList> item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### AggregatedListAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<NetworkFirewallPolicyAggregatedList, KeyValuePair<string, FirewallPoliciesScopedList>> AggregatedListAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves an aggregated list of network firewall policies, listing network
firewall policies from all applicable scopes (global and regional) and
grouping the results per scope.

To prevent failure, it is recommended that you set the
`returnPartialSuccess` parameter to `true`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPolicyAggregatedListhttps://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2https://learn.microsoft.com/dotnet/api/system.stringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPoliciesScopedList` | A pageable asynchronous sequence of [KeyValuePair\<TKey, TValue\>](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2) resources. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    // Make the request
    PagedAsyncEnumerable<NetworkFirewallPolicyAggregatedList, KeyValuePair<string, FirewallPoliciesScopedList>> response = networkFirewallPoliciesClient.AggregatedListAsync(project);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (KeyValuePair<string, FirewallPoliciesScopedList> item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (NetworkFirewallPolicyAggregatedList page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (KeyValuePair<string, FirewallPoliciesScopedList> item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<KeyValuePair<string, FirewallPoliciesScopedList>> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (KeyValuePair<string, FirewallPoliciesScopedList> item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### CloneRules(CloneRulesNetworkFirewallPolicyRequest, CallSettings)

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

Copies rules to the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.CloneRulesNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    CloneRulesNetworkFirewallPolicyRequest request = new CloneRulesNetworkFirewallPolicyRequest
    {
        SourceFirewallPolicy = "",
        RequestId = "",
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.CloneRules(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceCloneRules(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### CloneRules(string, string, CallSettings)

    public virtual Operation<Operation, Operation> CloneRules(string project, string firewallPolicy, CallSettings callSettings = null)

Copies rules to the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.CloneRules(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceCloneRules(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### CloneRulesAsync(CloneRulesNetworkFirewallPolicyRequest, CallSettings)

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

Copies rules to the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.CloneRulesNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    CloneRulesNetworkFirewallPolicyRequest request = new CloneRulesNetworkFirewallPolicyRequest
    {
        SourceFirewallPolicy = "",
        RequestId = "",
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.CloneRulesAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceCloneRulesAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### CloneRulesAsync(CloneRulesNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> CloneRulesAsync(CloneRulesNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Copies rules to the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.CloneRulesNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    CloneRulesNetworkFirewallPolicyRequest request = new CloneRulesNetworkFirewallPolicyRequest
    {
        SourceFirewallPolicy = "",
        RequestId = "",
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.CloneRulesAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceCloneRulesAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### CloneRulesAsync(string, string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> CloneRulesAsync(string project, string firewallPolicy, CallSettings callSettings = null)

Copies rules to the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.CloneRulesAsync(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceCloneRulesAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### CloneRulesAsync(string, string, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> CloneRulesAsync(string project, string firewallPolicy, CancellationToken cancellationToken)

Copies rules to the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.CloneRulesAsync(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceCloneRulesAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### Create()

    public static NetworkFirewallPoliciesClient Create()

Synchronously creates a [NetworkFirewallPoliciesClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClient) using the default credentials, endpoint
and settings. To specify custom credentials or other settings, use
[NetworkFirewallPoliciesClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClient` | The created [NetworkFirewallPoliciesClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClient). |

### CreateAsync(CancellationToken)

    public static Task<NetworkFirewallPoliciesClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [NetworkFirewallPoliciesClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClient) using the default credentials, endpoint
and settings. To specify custom credentials or other settings, use
[NetworkFirewallPoliciesClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClient` | The task representing the created [NetworkFirewallPoliciesClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClient). |

### Delete(DeleteNetworkFirewallPolicyRequest, CallSettings)

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

Deletes the specified policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.DeleteNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    DeleteNetworkFirewallPolicyRequest request = new DeleteNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.Delete(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceDelete(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### Delete(string, string, CallSettings)

    public virtual Operation<Operation, Operation> Delete(string project, string firewallPolicy, CallSettings callSettings = null)

Deletes the specified policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to delete. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.Delete(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceDelete(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### DeleteAsync(DeleteNetworkFirewallPolicyRequest, CallSettings)

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

Deletes the specified policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.DeleteNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    DeleteNetworkFirewallPolicyRequest request = new DeleteNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.DeleteAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceDeleteAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### DeleteAsync(DeleteNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Deletes the specified policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.DeleteNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    DeleteNetworkFirewallPolicyRequest request = new DeleteNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.DeleteAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceDeleteAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### DeleteAsync(string, string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string firewallPolicy, CallSettings callSettings = null)

Deletes the specified policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to delete. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.DeleteAsync(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceDeleteAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### DeleteAsync(string, string, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string firewallPolicy, CancellationToken cancellationToken)

Deletes the specified policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to delete. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.DeleteAsync(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceDeleteAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### Get(GetNetworkFirewallPolicyRequest, CallSettings)

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

Returns the specified network firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    GetNetworkFirewallPolicyRequest request = new GetNetworkFirewallPolicyRequest
    {
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    FirewallPolicy response = networkFirewallPoliciesClient.Get(request);

### Get(string, string, CallSettings)

    public virtual FirewallPolicy Get(string project, string firewallPolicy, CallSettings callSettings = null)

Returns the specified network firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to get. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    FirewallPolicy response = networkFirewallPoliciesClient.Get(project, firewallPolicy);

### GetAssociation(GetAssociationNetworkFirewallPolicyRequest, CallSettings)

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

Gets an association with the specified name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetAssociationNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyAssociation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    GetAssociationNetworkFirewallPolicyRequest request = new GetAssociationNetworkFirewallPolicyRequest
    {
        Name = "",
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    FirewallPolicyAssociation response = networkFirewallPoliciesClient.GetAssociation(request);

### GetAssociation(string, string, CallSettings)

    public virtual FirewallPolicyAssociation GetAssociation(string project, string firewallPolicy, CallSettings callSettings = null)

Gets an association with the specified name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to which the queried association belongs. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyAssociation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    FirewallPolicyAssociation response = networkFirewallPoliciesClient.GetAssociation(project, firewallPolicy);

### GetAssociationAsync(GetAssociationNetworkFirewallPolicyRequest, CallSettings)

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

Gets an association with the specified name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetAssociationNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyAssociation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    GetAssociationNetworkFirewallPolicyRequest request = new GetAssociationNetworkFirewallPolicyRequest
    {
        Name = "",
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    FirewallPolicyAssociation response = await networkFirewallPoliciesClient.GetAssociationAsync(request);

### GetAssociationAsync(GetAssociationNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<FirewallPolicyAssociation> GetAssociationAsync(GetAssociationNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Gets an association with the specified name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetAssociationNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyAssociation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    GetAssociationNetworkFirewallPolicyRequest request = new GetAssociationNetworkFirewallPolicyRequest
    {
        Name = "",
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    FirewallPolicyAssociation response = await networkFirewallPoliciesClient.GetAssociationAsync(request);

### GetAssociationAsync(string, string, CallSettings)

    public virtual Task<FirewallPolicyAssociation> GetAssociationAsync(string project, string firewallPolicy, CallSettings callSettings = null)

Gets an association with the specified name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to which the queried association belongs. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyAssociation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    FirewallPolicyAssociation response = await networkFirewallPoliciesClient.GetAssociationAsync(project, firewallPolicy);

### GetAssociationAsync(string, string, CancellationToken)

    public virtual Task<FirewallPolicyAssociation> GetAssociationAsync(string project, string firewallPolicy, CancellationToken cancellationToken)

Gets an association with the specified name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to which the queried association belongs. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyAssociation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    FirewallPolicyAssociation response = await networkFirewallPoliciesClient.GetAssociationAsync(project, firewallPolicy);

### GetAsync(GetNetworkFirewallPolicyRequest, CallSettings)

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

Returns the specified network firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    GetNetworkFirewallPolicyRequest request = new GetNetworkFirewallPolicyRequest
    {
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    FirewallPolicy response = await networkFirewallPoliciesClient.GetAsync(request);

### GetAsync(GetNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<FirewallPolicy> GetAsync(GetNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Returns the specified network firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    GetNetworkFirewallPolicyRequest request = new GetNetworkFirewallPolicyRequest
    {
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    FirewallPolicy response = await networkFirewallPoliciesClient.GetAsync(request);

### GetAsync(string, string, CallSettings)

    public virtual Task<FirewallPolicy> GetAsync(string project, string firewallPolicy, CallSettings callSettings = null)

Returns the specified network firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to get. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    FirewallPolicy response = await networkFirewallPoliciesClient.GetAsync(project, firewallPolicy);

### GetAsync(string, string, CancellationToken)

    public virtual Task<FirewallPolicy> GetAsync(string project, string firewallPolicy, CancellationToken cancellationToken)

Returns the specified network firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to get. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    FirewallPolicy response = await networkFirewallPoliciesClient.GetAsync(project, firewallPolicy);

### GetIamPolicy(GetIamPolicyNetworkFirewallPolicyRequest, CallSettings)

    public virtual 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetIamPolicyNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    GetIamPolicyNetworkFirewallPolicyRequest request = new GetIamPolicyNetworkFirewallPolicyRequest
    {
        Resource = "",
        Project = "",
        OptionsRequestedPolicyVersion = 0,
    };
    // Make the request
    Policy response = networkFirewallPoliciesClient.GetIamPolicy(request);

### GetIamPolicy(string, string, CallSettings)

    public virtual Policy GetIamPolicy(string project, string resource, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` Name or id of the resource for this request. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string resource = "";
    // Make the request
    Policy response = networkFirewallPoliciesClient.GetIamPolicy(project, resource);

### GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest, CallSettings)

    public virtual 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetIamPolicyNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    GetIamPolicyNetworkFirewallPolicyRequest request = new GetIamPolicyNetworkFirewallPolicyRequest
    {
        Resource = "",
        Project = "",
        OptionsRequestedPolicyVersion = 0,
    };
    // Make the request
    Policy response = await networkFirewallPoliciesClient.GetIamPolicyAsync(request);

### GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetIamPolicyNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    GetIamPolicyNetworkFirewallPolicyRequest request = new GetIamPolicyNetworkFirewallPolicyRequest
    {
        Resource = "",
        Project = "",
        OptionsRequestedPolicyVersion = 0,
    };
    // Make the request
    Policy response = await networkFirewallPoliciesClient.GetIamPolicyAsync(request);

### GetIamPolicyAsync(string, string, CallSettings)

    public virtual Task<Policy> GetIamPolicyAsync(string project, string resource, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` Name or id of the resource for this request. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string resource = "";
    // Make the request
    Policy response = await networkFirewallPoliciesClient.GetIamPolicyAsync(project, resource);

### GetIamPolicyAsync(string, string, CancellationToken)

    public virtual Task<Policy> GetIamPolicyAsync(string project, string resource, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` Name or id of the resource for this request. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string resource = "";
    // Make the request
    Policy response = await networkFirewallPoliciesClient.GetIamPolicyAsync(project, resource);

### GetPacketMirroringRule(GetPacketMirroringRuleNetworkFirewallPolicyRequest, CallSettings)

    public virtual FirewallPolicyRule GetPacketMirroringRule(GetPacketMirroringRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Gets a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetPacketMirroringRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    GetPacketMirroringRuleNetworkFirewallPolicyRequest request = new GetPacketMirroringRuleNetworkFirewallPolicyRequest
    {
        Project = "",
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    FirewallPolicyRule response = networkFirewallPoliciesClient.GetPacketMirroringRule(request);

### GetPacketMirroringRule(string, string, CallSettings)

    public virtual FirewallPolicyRule GetPacketMirroringRule(string project, string firewallPolicy, CallSettings callSettings = null)

Gets a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to which the queried rule belongs. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    FirewallPolicyRule response = networkFirewallPoliciesClient.GetPacketMirroringRule(project, firewallPolicy);

### GetPacketMirroringRuleAsync(GetPacketMirroringRuleNetworkFirewallPolicyRequest, CallSettings)

    public virtual Task<FirewallPolicyRule> GetPacketMirroringRuleAsync(GetPacketMirroringRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Gets a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetPacketMirroringRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    GetPacketMirroringRuleNetworkFirewallPolicyRequest request = new GetPacketMirroringRuleNetworkFirewallPolicyRequest
    {
        Project = "",
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    FirewallPolicyRule response = await networkFirewallPoliciesClient.GetPacketMirroringRuleAsync(request);

### GetPacketMirroringRuleAsync(GetPacketMirroringRuleNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<FirewallPolicyRule> GetPacketMirroringRuleAsync(GetPacketMirroringRuleNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Gets a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetPacketMirroringRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    GetPacketMirroringRuleNetworkFirewallPolicyRequest request = new GetPacketMirroringRuleNetworkFirewallPolicyRequest
    {
        Project = "",
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    FirewallPolicyRule response = await networkFirewallPoliciesClient.GetPacketMirroringRuleAsync(request);

### GetPacketMirroringRuleAsync(string, string, CallSettings)

    public virtual Task<FirewallPolicyRule> GetPacketMirroringRuleAsync(string project, string firewallPolicy, CallSettings callSettings = null)

Gets a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to which the queried rule belongs. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    FirewallPolicyRule response = await networkFirewallPoliciesClient.GetPacketMirroringRuleAsync(project, firewallPolicy);

### GetPacketMirroringRuleAsync(string, string, CancellationToken)

    public virtual Task<FirewallPolicyRule> GetPacketMirroringRuleAsync(string project, string firewallPolicy, CancellationToken cancellationToken)

Gets a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to which the queried rule belongs. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    FirewallPolicyRule response = await networkFirewallPoliciesClient.GetPacketMirroringRuleAsync(project, firewallPolicy);

### GetRule(GetRuleNetworkFirewallPolicyRequest, CallSettings)

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

Gets a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    GetRuleNetworkFirewallPolicyRequest request = new GetRuleNetworkFirewallPolicyRequest
    {
        Project = "",
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    FirewallPolicyRule response = networkFirewallPoliciesClient.GetRule(request);

### GetRule(string, string, CallSettings)

    public virtual FirewallPolicyRule GetRule(string project, string firewallPolicy, CallSettings callSettings = null)

Gets a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to which the queried rule belongs. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    FirewallPolicyRule response = networkFirewallPoliciesClient.GetRule(project, firewallPolicy);

### GetRuleAsync(GetRuleNetworkFirewallPolicyRequest, CallSettings)

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

Gets a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    GetRuleNetworkFirewallPolicyRequest request = new GetRuleNetworkFirewallPolicyRequest
    {
        Project = "",
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    FirewallPolicyRule response = await networkFirewallPoliciesClient.GetRuleAsync(request);

### GetRuleAsync(GetRuleNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<FirewallPolicyRule> GetRuleAsync(GetRuleNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Gets a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    GetRuleNetworkFirewallPolicyRequest request = new GetRuleNetworkFirewallPolicyRequest
    {
        Project = "",
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    FirewallPolicyRule response = await networkFirewallPoliciesClient.GetRuleAsync(request);

### GetRuleAsync(string, string, CallSettings)

    public virtual Task<FirewallPolicyRule> GetRuleAsync(string project, string firewallPolicy, CallSettings callSettings = null)

Gets a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to which the queried rule belongs. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    FirewallPolicyRule response = await networkFirewallPoliciesClient.GetRuleAsync(project, firewallPolicy);

### GetRuleAsync(string, string, CancellationToken)

    public virtual Task<FirewallPolicyRule> GetRuleAsync(string project, string firewallPolicy, CancellationToken cancellationToken)

Gets a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to which the queried rule belongs. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    FirewallPolicyRule response = await networkFirewallPoliciesClient.GetRuleAsync(project, firewallPolicy);

### Insert(InsertNetworkFirewallPolicyRequest, CallSettings)

    public virtual 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.InsertNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    InsertNetworkFirewallPolicyRequest request = new InsertNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyResource = new FirewallPolicy(),
    };
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.Insert(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceInsert(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### Insert(string, FirewallPolicy, CallSettings)

    public virtual Operation<Operation, Operation> Insert(string project, FirewallPolicy firewallPolicyResource, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicyResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    FirewallPolicy firewallPolicyResource = new FirewallPolicy();
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.Insert(project, firewallPolicyResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceInsert(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### InsertAsync(InsertNetworkFirewallPolicyRequest, CallSettings)

    public virtual 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.InsertNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    InsertNetworkFirewallPolicyRequest request = new InsertNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyResource = new FirewallPolicy(),
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.InsertAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceInsertAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### InsertAsync(InsertNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.InsertNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    InsertNetworkFirewallPolicyRequest request = new InsertNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyResource = new FirewallPolicy(),
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.InsertAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceInsertAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### InsertAsync(string, FirewallPolicy, CallSettings)

    public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, FirewallPolicy firewallPolicyResource, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicyResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    FirewallPolicy firewallPolicyResource = new FirewallPolicy();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.InsertAsync(project, firewallPolicyResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceInsertAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### InsertAsync(string, FirewallPolicy, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, FirewallPolicy firewallPolicyResource, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicyResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` The body resource for this request |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    FirewallPolicy firewallPolicyResource = new FirewallPolicy();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.InsertAsync(project, firewallPolicyResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceInsertAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### List(ListNetworkFirewallPoliciesRequest, CallSettings)

    public virtual 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListNetworkFirewallPoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` | A pageable sequence of [FirewallPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy) resources. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    ListNetworkFirewallPoliciesRequest request = new ListNetworkFirewallPoliciesRequest
    {
        OrderBy = "",
        Project = "",
        Filter = "",
        ReturnPartialSuccess = false,
    };
    // Make the request
    PagedEnumerable<FirewallPolicyList, FirewallPolicy> response = networkFirewallPoliciesClient.List(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (FirewallPolicy item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (FirewallPolicyList page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (FirewallPolicy item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<FirewallPolicy> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (FirewallPolicy item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### List(string, string, int?, CallSettings)

    public virtual PagedEnumerable<FirewallPolicyList, FirewallPolicy> List(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` | A pageable sequence of [FirewallPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy) resources. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    // Make the request
    PagedEnumerable<FirewallPolicyList, FirewallPolicy> response = networkFirewallPoliciesClient.List(project);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (FirewallPolicy item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (FirewallPolicyList page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (FirewallPolicy item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<FirewallPolicy> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (FirewallPolicy item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListAsync(ListNetworkFirewallPoliciesRequest, CallSettings)

    public virtual 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListNetworkFirewallPoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` | A pageable asynchronous sequence of [FirewallPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy) resources. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    ListNetworkFirewallPoliciesRequest request = new ListNetworkFirewallPoliciesRequest
    {
        OrderBy = "",
        Project = "",
        Filter = "",
        ReturnPartialSuccess = false,
    };
    // Make the request
    PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy> response = networkFirewallPoliciesClient.ListAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (FirewallPolicy item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (FirewallPolicyList page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (FirewallPolicy item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<FirewallPolicy> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (FirewallPolicy item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy> ListAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` | A pageable asynchronous sequence of [FirewallPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy) resources. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    // Make the request
    PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy> response = networkFirewallPoliciesClient.ListAsync(project);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (FirewallPolicy item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (FirewallPolicyList page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (FirewallPolicy item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<FirewallPolicy> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (FirewallPolicy item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### Patch(PatchNetworkFirewallPolicyRequest, CallSettings)

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

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    PatchNetworkFirewallPolicyRequest request = new PatchNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyResource = new FirewallPolicy(),
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.Patch(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOncePatch(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### Patch(string, string, FirewallPolicy, CallSettings)

    public virtual Operation<Operation, Operation> Patch(string project, string firewallPolicy, FirewallPolicy firewallPolicyResource, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicy firewallPolicyResource = new FirewallPolicy();
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.Patch(project, firewallPolicy, firewallPolicyResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOncePatch(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchAsync(PatchNetworkFirewallPolicyRequest, CallSettings)

    public virtual 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    PatchNetworkFirewallPolicyRequest request = new PatchNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyResource = new FirewallPolicy(),
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchAsync(PatchNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    PatchNetworkFirewallPolicyRequest request = new PatchNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyResource = new FirewallPolicy(),
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchAsync(string, string, FirewallPolicy, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string firewallPolicy, FirewallPolicy firewallPolicyResource, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicy firewallPolicyResource = new FirewallPolicy();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchAsync(project, firewallPolicy, firewallPolicyResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchAsync(string, string, FirewallPolicy, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string firewallPolicy, FirewallPolicy firewallPolicyResource, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicy` The body resource for this request |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicy firewallPolicyResource = new FirewallPolicy();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchAsync(project, firewallPolicy, firewallPolicyResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchPacketMirroringRule(PatchPacketMirroringRuleNetworkFirewallPolicyRequest, CallSettings)

    public virtual Operation<Operation, Operation> PatchPacketMirroringRule(PatchPacketMirroringRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Patches a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchPacketMirroringRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    PatchPacketMirroringRuleNetworkFirewallPolicyRequest request = new PatchPacketMirroringRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyRuleResource = new FirewallPolicyRule(),
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.PatchPacketMirroringRule(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOncePatchPacketMirroringRule(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchPacketMirroringRule(string, string, FirewallPolicyRule, CallSettings)

    public virtual Operation<Operation, Operation> PatchPacketMirroringRule(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CallSettings callSettings = null)

Patches a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyRuleResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.PatchPacketMirroringRule(project, firewallPolicy, firewallPolicyRuleResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOncePatchPacketMirroringRule(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchPacketMirroringRuleAsync(PatchPacketMirroringRuleNetworkFirewallPolicyRequest, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PatchPacketMirroringRuleAsync(PatchPacketMirroringRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Patches a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchPacketMirroringRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    PatchPacketMirroringRuleNetworkFirewallPolicyRequest request = new PatchPacketMirroringRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyRuleResource = new FirewallPolicyRule(),
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchPacketMirroringRuleAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchPacketMirroringRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchPacketMirroringRuleAsync(PatchPacketMirroringRuleNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> PatchPacketMirroringRuleAsync(PatchPacketMirroringRuleNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Patches a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchPacketMirroringRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    PatchPacketMirroringRuleNetworkFirewallPolicyRequest request = new PatchPacketMirroringRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyRuleResource = new FirewallPolicyRule(),
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchPacketMirroringRuleAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchPacketMirroringRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchPacketMirroringRuleAsync(string, string, FirewallPolicyRule, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PatchPacketMirroringRuleAsync(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CallSettings callSettings = null)

Patches a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyRuleResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchPacketMirroringRuleAsync(project, firewallPolicy, firewallPolicyRuleResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchPacketMirroringRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchPacketMirroringRuleAsync(string, string, FirewallPolicyRule, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> PatchPacketMirroringRuleAsync(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CancellationToken cancellationToken)

Patches a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyRuleResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` The body resource for this request |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchPacketMirroringRuleAsync(project, firewallPolicy, firewallPolicyRuleResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchPacketMirroringRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchRule(PatchRuleNetworkFirewallPolicyRequest, CallSettings)

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

Patches a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    PatchRuleNetworkFirewallPolicyRequest request = new PatchRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyRuleResource = new FirewallPolicyRule(),
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.PatchRule(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOncePatchRule(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchRule(string, string, FirewallPolicyRule, CallSettings)

    public virtual Operation<Operation, Operation> PatchRule(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CallSettings callSettings = null)

Patches a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyRuleResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.PatchRule(project, firewallPolicy, firewallPolicyRuleResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOncePatchRule(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchRuleAsync(PatchRuleNetworkFirewallPolicyRequest, CallSettings)

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

Patches a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    PatchRuleNetworkFirewallPolicyRequest request = new PatchRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyRuleResource = new FirewallPolicyRule(),
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchRuleAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchRuleAsync(PatchRuleNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> PatchRuleAsync(PatchRuleNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Patches a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PatchRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    PatchRuleNetworkFirewallPolicyRequest request = new PatchRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        FirewallPolicyRuleResource = new FirewallPolicyRule(),
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchRuleAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchRuleAsync(string, string, FirewallPolicyRule, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PatchRuleAsync(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CallSettings callSettings = null)

Patches a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyRuleResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchRuleAsync(project, firewallPolicy, firewallPolicyRuleResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PatchRuleAsync(string, string, FirewallPolicyRule, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> PatchRuleAsync(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CancellationToken cancellationToken)

Patches a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `firewallPolicyRuleResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRule` The body resource for this request |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchRuleAsync(project, firewallPolicy, firewallPolicyRuleResource);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### PollOnceAddAssociation(string, CallSettings)

    public virtual Operation<Operation, Operation> PollOnceAddAssociation(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `AddAssociation`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The result of polling the operation. |

### PollOnceAddAssociationAsync(string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PollOnceAddAssociationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`AddAssociation`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A task representing the result of polling the operation. |

### PollOnceAddPacketMirroringRule(string, CallSettings)

    public virtual Operation<Operation, Operation> PollOnceAddPacketMirroringRule(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of
`AddPacketMirroringRule`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The result of polling the operation. |

### PollOnceAddPacketMirroringRuleAsync(string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PollOnceAddPacketMirroringRuleAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`AddPacketMirroringRule`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A task representing the result of polling the operation. |

### PollOnceAddRule(string, CallSettings)

    public virtual Operation<Operation, Operation> PollOnceAddRule(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `AddRule`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The result of polling the operation. |

### PollOnceAddRuleAsync(string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PollOnceAddRuleAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`AddRule`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A task representing the result of polling the operation. |

### PollOnceCloneRules(string, CallSettings)

    public virtual Operation<Operation, Operation> PollOnceCloneRules(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `CloneRules`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The result of polling the operation. |

### PollOnceCloneRulesAsync(string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PollOnceCloneRulesAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`CloneRules`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A task representing the result of polling the operation. |

### PollOnceDelete(string, CallSettings)

    public virtual Operation<Operation, Operation> PollOnceDelete(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `Delete`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The result of polling the operation. |

### PollOnceDeleteAsync(string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PollOnceDeleteAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of `Delete`
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A task representing the result of polling the operation. |

### PollOnceInsert(string, CallSettings)

    public virtual Operation<Operation, Operation> PollOnceInsert(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `Insert`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The result of polling the operation. |

### PollOnceInsertAsync(string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PollOnceInsertAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of `Insert`
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A task representing the result of polling the operation. |

### PollOncePatch(string, CallSettings)

    public virtual Operation<Operation, Operation> PollOncePatch(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `Patch`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The result of polling the operation. |

### PollOncePatchAsync(string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PollOncePatchAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of `Patch`
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A task representing the result of polling the operation. |

### PollOncePatchPacketMirroringRule(string, CallSettings)

    public virtual Operation<Operation, Operation> PollOncePatchPacketMirroringRule(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of
`PatchPacketMirroringRule`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The result of polling the operation. |

### PollOncePatchPacketMirroringRuleAsync(string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PollOncePatchPacketMirroringRuleAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`PatchPacketMirroringRule`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A task representing the result of polling the operation. |

### PollOncePatchRule(string, CallSettings)

    public virtual Operation<Operation, Operation> PollOncePatchRule(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `PatchRule`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The result of polling the operation. |

### PollOncePatchRuleAsync(string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PollOncePatchRuleAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`PatchRule`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A task representing the result of polling the operation. |

### PollOnceRemoveAssociation(string, CallSettings)

    public virtual Operation<Operation, Operation> PollOnceRemoveAssociation(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `RemoveAssociation`
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The result of polling the operation. |

### PollOnceRemoveAssociationAsync(string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PollOnceRemoveAssociationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`RemoveAssociation`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A task representing the result of polling the operation. |

### PollOnceRemovePacketMirroringRule(string, CallSettings)

    public virtual Operation<Operation, Operation> PollOnceRemovePacketMirroringRule(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of
`RemovePacketMirroringRule`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The result of polling the operation. |

### PollOnceRemovePacketMirroringRuleAsync(string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PollOnceRemovePacketMirroringRuleAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`RemovePacketMirroringRule`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A task representing the result of polling the operation. |

### PollOnceRemoveRule(string, CallSettings)

    public virtual Operation<Operation, Operation> PollOnceRemoveRule(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `RemoveRule`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The result of polling the operation. |

### PollOnceRemoveRuleAsync(string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> PollOnceRemoveRuleAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`RemoveRule`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A task representing the result of polling the operation. |

### RemoveAssociation(RemoveAssociationNetworkFirewallPolicyRequest, CallSettings)

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

Removes an association for the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.RemoveAssociationNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    RemoveAssociationNetworkFirewallPolicyRequest request = new RemoveAssociationNetworkFirewallPolicyRequest
    {
        Name = "",
        RequestId = "",
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.RemoveAssociation(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceRemoveAssociation(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemoveAssociation(string, string, CallSettings)

    public virtual Operation<Operation, Operation> RemoveAssociation(string project, string firewallPolicy, CallSettings callSettings = null)

Removes an association for the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.RemoveAssociation(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceRemoveAssociation(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemoveAssociationAsync(RemoveAssociationNetworkFirewallPolicyRequest, CallSettings)

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

Removes an association for the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.RemoveAssociationNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    RemoveAssociationNetworkFirewallPolicyRequest request = new RemoveAssociationNetworkFirewallPolicyRequest
    {
        Name = "",
        RequestId = "",
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveAssociationAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveAssociationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemoveAssociationAsync(RemoveAssociationNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> RemoveAssociationAsync(RemoveAssociationNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Removes an association for the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.RemoveAssociationNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    RemoveAssociationNetworkFirewallPolicyRequest request = new RemoveAssociationNetworkFirewallPolicyRequest
    {
        Name = "",
        RequestId = "",
        Project = "",
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveAssociationAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveAssociationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemoveAssociationAsync(string, string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> RemoveAssociationAsync(string project, string firewallPolicy, CallSettings callSettings = null)

Removes an association for the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveAssociationAsync(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveAssociationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemoveAssociationAsync(string, string, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> RemoveAssociationAsync(string project, string firewallPolicy, CancellationToken cancellationToken)

Removes an association for the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveAssociationAsync(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveAssociationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemovePacketMirroringRule(RemovePacketMirroringRuleNetworkFirewallPolicyRequest, CallSettings)

    public virtual Operation<Operation, Operation> RemovePacketMirroringRule(RemovePacketMirroringRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Deletes a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.RemovePacketMirroringRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    RemovePacketMirroringRuleNetworkFirewallPolicyRequest request = new RemovePacketMirroringRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.RemovePacketMirroringRule(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceRemovePacketMirroringRule(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemovePacketMirroringRule(string, string, CallSettings)

    public virtual Operation<Operation, Operation> RemovePacketMirroringRule(string project, string firewallPolicy, CallSettings callSettings = null)

Deletes a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.RemovePacketMirroringRule(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceRemovePacketMirroringRule(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemovePacketMirroringRuleAsync(RemovePacketMirroringRuleNetworkFirewallPolicyRequest, CallSettings)

    public virtual Task<Operation<Operation, Operation>> RemovePacketMirroringRuleAsync(RemovePacketMirroringRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

Deletes a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.RemovePacketMirroringRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    RemovePacketMirroringRuleNetworkFirewallPolicyRequest request = new RemovePacketMirroringRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemovePacketMirroringRuleAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemovePacketMirroringRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemovePacketMirroringRuleAsync(RemovePacketMirroringRuleNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> RemovePacketMirroringRuleAsync(RemovePacketMirroringRuleNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Deletes a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.RemovePacketMirroringRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    RemovePacketMirroringRuleNetworkFirewallPolicyRequest request = new RemovePacketMirroringRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemovePacketMirroringRuleAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemovePacketMirroringRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemovePacketMirroringRuleAsync(string, string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> RemovePacketMirroringRuleAsync(string project, string firewallPolicy, CallSettings callSettings = null)

Deletes a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemovePacketMirroringRuleAsync(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemovePacketMirroringRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemovePacketMirroringRuleAsync(string, string, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> RemovePacketMirroringRuleAsync(string project, string firewallPolicy, CancellationToken cancellationToken)

Deletes a packet mirroring rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemovePacketMirroringRuleAsync(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemovePacketMirroringRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemoveRule(RemoveRuleNetworkFirewallPolicyRequest, CallSettings)

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

Deletes a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.RemoveRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    RemoveRuleNetworkFirewallPolicyRequest request = new RemoveRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.RemoveRule(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceRemoveRule(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemoveRule(string, string, CallSettings)

    public virtual Operation<Operation, Operation> RemoveRule(string project, string firewallPolicy, CallSettings callSettings = null)

Deletes a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.RemoveRule(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceRemoveRule(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemoveRuleAsync(RemoveRuleNetworkFirewallPolicyRequest, CallSettings)

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

Deletes a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.RemoveRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    RemoveRuleNetworkFirewallPolicyRequest request = new RemoveRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveRuleAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemoveRuleAsync(RemoveRuleNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> RemoveRuleAsync(RemoveRuleNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Deletes a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.RemoveRuleNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    RemoveRuleNetworkFirewallPolicyRequest request = new RemoveRuleNetworkFirewallPolicyRequest
    {
        RequestId = "",
        Project = "",
        Priority = 0,
        FirewallPolicy = "",
    };
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveRuleAsync(request);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemoveRuleAsync(string, string, CallSettings)

    public virtual Task<Operation<Operation, Operation>> RemoveRuleAsync(string project, string firewallPolicy, CallSettings callSettings = null)

Deletes a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveRuleAsync(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### RemoveRuleAsync(string, string, CancellationToken)

    public virtual Task<Operation<Operation, Operation>> RemoveRuleAsync(string project, string firewallPolicy, CancellationToken cancellationToken)

Deletes a rule of the specified priority.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `firewallPolicy` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the firewall policy to update. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string firewallPolicy = "";
    // Make the request
    lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveRuleAsync(project, firewallPolicy);

    // Poll until the returned long-running operation is complete
    lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Operation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveRuleAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Operation retrievedResult = retrievedResponse.Result;
    }

### SetIamPolicy(SetIamPolicyNetworkFirewallPolicyRequest, CallSettings)

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

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetIamPolicyNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    SetIamPolicyNetworkFirewallPolicyRequest request = new SetIamPolicyNetworkFirewallPolicyRequest
    {
        Resource = "",
        Project = "",
        GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
    };
    // Make the request
    Policy response = networkFirewallPoliciesClient.SetIamPolicy(request);

### SetIamPolicy(string, string, GlobalSetPolicyRequest, CallSettings)

    public virtual Policy SetIamPolicy(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` Name or id of the resource for this request. |
| `globalSetPolicyRequestResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalSetPolicyRequest` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string resource = "";
    GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
    // Make the request
    Policy response = networkFirewallPoliciesClient.SetIamPolicy(project, resource, globalSetPolicyRequestResource);

### SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest, CallSettings)

    public virtual 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetIamPolicyNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    SetIamPolicyNetworkFirewallPolicyRequest request = new SetIamPolicyNetworkFirewallPolicyRequest
    {
        Resource = "",
        Project = "",
        GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
    };
    // Make the request
    Policy response = await networkFirewallPoliciesClient.SetIamPolicyAsync(request);

### SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetIamPolicyNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    SetIamPolicyNetworkFirewallPolicyRequest request = new SetIamPolicyNetworkFirewallPolicyRequest
    {
        Resource = "",
        Project = "",
        GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
    };
    // Make the request
    Policy response = await networkFirewallPoliciesClient.SetIamPolicyAsync(request);

### SetIamPolicyAsync(string, string, GlobalSetPolicyRequest, CallSettings)

    public virtual Task<Policy> SetIamPolicyAsync(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` Name or id of the resource for this request. |
| `globalSetPolicyRequestResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalSetPolicyRequest` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string resource = "";
    GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
    // Make the request
    Policy response = await networkFirewallPoliciesClient.SetIamPolicyAsync(project, resource, globalSetPolicyRequestResource);

### SetIamPolicyAsync(string, string, GlobalSetPolicyRequest, CancellationToken)

    public virtual Task<Policy> SetIamPolicyAsync(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` Name or id of the resource for this request. |
| `globalSetPolicyRequestResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GlobalSetPolicyRequest` The body resource for this request |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string resource = "";
    GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
    // Make the request
    Policy response = await networkFirewallPoliciesClient.SetIamPolicyAsync(project, resource, globalSetPolicyRequestResource);

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClient#Google_Cloud_Compute_V1_NetworkFirewallPoliciesClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClient#Google_Cloud_Compute_V1_NetworkFirewallPoliciesClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClient#Google_Cloud_Compute_V1_NetworkFirewallPoliciesClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkFirewallPoliciesClient#Google_Cloud_Compute_V1_NetworkFirewallPoliciesClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### TestIamPermissions(TestIamPermissionsNetworkFirewallPolicyRequest, CallSettings)

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

Returns permissions that a caller has on the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestIamPermissionsNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsResponse` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    TestIamPermissionsNetworkFirewallPolicyRequest request = new TestIamPermissionsNetworkFirewallPolicyRequest
    {
        Resource = "",
        Project = "",
        TestPermissionsRequestResource = new TestPermissionsRequest(),
    };
    // Make the request
    TestPermissionsResponse response = networkFirewallPoliciesClient.TestIamPermissions(request);

### TestIamPermissions(string, string, TestPermissionsRequest, CallSettings)

    public virtual TestPermissionsResponse TestIamPermissions(string project, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` Name or id of the resource for this request. |
| `testPermissionsRequestResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsRequest` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsResponse` | The RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
    // Initialize request argument(s)
    string project = "";
    string resource = "";
    TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
    // Make the request
    TestPermissionsResponse response = networkFirewallPoliciesClient.TestIamPermissions(project, resource, testPermissionsRequestResource);

### TestIamPermissionsAsync(TestIamPermissionsNetworkFirewallPolicyRequest, CallSettings)

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

Returns permissions that a caller has on the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestIamPermissionsNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    TestIamPermissionsNetworkFirewallPolicyRequest request = new TestIamPermissionsNetworkFirewallPolicyRequest
    {
        Resource = "",
        Project = "",
        TestPermissionsRequestResource = new TestPermissionsRequest(),
    };
    // Make the request
    TestPermissionsResponse response = await networkFirewallPoliciesClient.TestIamPermissionsAsync(request);

### TestIamPermissionsAsync(TestIamPermissionsNetworkFirewallPolicyRequest, CancellationToken)

    public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Returns permissions that a caller has on the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestIamPermissionsNetworkFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    TestIamPermissionsNetworkFirewallPolicyRequest request = new TestIamPermissionsNetworkFirewallPolicyRequest
    {
        Resource = "",
        Project = "",
        TestPermissionsRequestResource = new TestPermissionsRequest(),
    };
    // Make the request
    TestPermissionsResponse response = await networkFirewallPoliciesClient.TestIamPermissionsAsync(request);

### TestIamPermissionsAsync(string, string, TestPermissionsRequest, CallSettings)

    public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` Name or id of the resource for this request. |
| `testPermissionsRequestResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsRequest` The body resource for this request |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string resource = "";
    TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
    // Make the request
    TestPermissionsResponse response = await networkFirewallPoliciesClient.TestIamPermissionsAsync(project, resource, testPermissionsRequestResource);

### TestIamPermissionsAsync(string, string, TestPermissionsRequest, CancellationToken)

    public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string resource, TestPermissionsRequest testPermissionsRequestResource, CancellationToken cancellationToken)

Returns permissions that a caller has on the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` Name or id of the resource for this request. |
| `testPermissionsRequestResource` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsRequest` The body resource for this request |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string resource = "";
    TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
    // Make the request
    TestPermissionsResponse response = await networkFirewallPoliciesClient.TestIamPermissionsAsync(project, resource, testPermissionsRequestResource);