Class NetworkFirewallPoliciesClient (1.2.0)

public abstract class NetworkFirewallPoliciesClient

NetworkFirewallPolicies client wrapper, for convenient use.

Inheritance

Object > NetworkFirewallPoliciesClient

Namespace

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
TypeDescription
OperationsClient

AddRuleOperationsClient

public virtual OperationsClient AddRuleOperationsClient { get; }

The long-running operations client for AddRule.

Property Value
TypeDescription
OperationsClient

CloneRulesOperationsClient

public virtual OperationsClient CloneRulesOperationsClient { get; }

The long-running operations client for CloneRules.

Property Value
TypeDescription
OperationsClient

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
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default NetworkFirewallPolicies scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

DeleteOperationsClient

public virtual OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual NetworkFirewallPolicies.NetworkFirewallPoliciesClient GrpcClient { get; }

The underlying gRPC NetworkFirewallPolicies client

Property Value
TypeDescription
NetworkFirewallPolicies.NetworkFirewallPoliciesClient

InsertOperationsClient

public virtual OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient

PatchOperationsClient

public virtual OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
TypeDescription
OperationsClient

PatchRuleOperationsClient

public virtual OperationsClient PatchRuleOperationsClient { get; }

The long-running operations client for PatchRule.

Property Value
TypeDescription
OperationsClient

RemoveAssociationOperationsClient

public virtual OperationsClient RemoveAssociationOperationsClient { get; }

The long-running operations client for RemoveAssociation.

Property Value
TypeDescription
OperationsClient

RemoveRuleOperationsClient

public virtual OperationsClient RemoveRuleOperationsClient { get; }

The long-running operations client for RemoveRule.

Property Value
TypeDescription
OperationsClient

Methods

AddAssociation(AddAssociationNetworkFirewallPolicyRequest, CallSettings)

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

Inserts an association for the specified firewall policy.

Parameters
NameDescription
requestAddAssociationNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

firewallPolicyAssociationResourceFirewallPolicyAssociation

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
requestAddAssociationNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestAddAssociationNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

firewallPolicyAssociationResourceFirewallPolicyAssociation

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

firewallPolicyAssociationResourceFirewallPolicyAssociation

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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;
}

AddRule(AddRuleNetworkFirewallPolicyRequest, CallSettings)

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

Inserts a rule into a firewall policy.

Parameters
NameDescription
requestAddRuleNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

firewallPolicyRuleResourceFirewallPolicyRule

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
requestAddRuleNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestAddRuleNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

firewallPolicyRuleResourceFirewallPolicyRule

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

firewallPolicyRuleResourceFirewallPolicyRule

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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;
}

CloneRules(CloneRulesNetworkFirewallPolicyRequest, CallSettings)

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

Copies rules to the specified firewall policy.

Parameters
NameDescription
requestCloneRulesNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
requestCloneRulesNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestCloneRulesNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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 using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NetworkFirewallPoliciesClientBuilder.

Returns
TypeDescription
NetworkFirewallPoliciesClient

The created NetworkFirewallPoliciesClient.

CreateAsync(CancellationToken)

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

Asynchronously creates a NetworkFirewallPoliciesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NetworkFirewallPoliciesClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<NetworkFirewallPoliciesClient>

The task representing the created NetworkFirewallPoliciesClient.

Delete(DeleteNetworkFirewallPolicyRequest, CallSettings)

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

Deletes the specified policy.

Parameters
NameDescription
requestDeleteNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
requestDeleteNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestDeleteNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestGetNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetAssociationNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to which the queried association belongs.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetAssociationNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
requestGetAssociationNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to which the queried association belongs.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to which the queried association belongs.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
requestGetNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
requestGetNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
requestGetIamPolicyNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
projectString

Project ID for this request.

resourceString

Name or id of the resource for this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
requestGetIamPolicyNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
projectString

Project ID for this request.

resourceString

Name or id of the resource for this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
projectString

Project ID for this request.

resourceString

Name or id of the resource for this request.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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);

GetRule(GetRuleNetworkFirewallPolicyRequest, CallSettings)

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

Gets a rule of the specified priority.

Parameters
NameDescription
requestGetRuleNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to which the queried rule belongs.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetRuleNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
requestGetRuleNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to which the queried rule belongs.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to which the queried rule belongs.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
requestInsertNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyResourceFirewallPolicy

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
requestInsertNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestInsertNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyResourceFirewallPolicy

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyResourceFirewallPolicy

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestListNetworkFirewallPoliciesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<FirewallPolicyList, FirewallPolicy>

A pageable sequence of 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, Nullable<Int32>, CallSettings)

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

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

Parameters
NameDescription
projectString

Project ID for this request.

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<FirewallPolicyList, FirewallPolicy>

A pageable sequence of 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
NameDescription
requestListNetworkFirewallPoliciesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy>

A pageable asynchronous sequence of 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 response.ForEachAsync((FirewallPolicy item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FirewallPolicyList page) =>
{
    // 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, Nullable<Int32>, CallSettings)

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

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

Parameters
NameDescription
projectString

Project ID for this request.

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy>

A pageable asynchronous sequence of 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 response.ForEachAsync((FirewallPolicy item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FirewallPolicyList page) =>
{
    // 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
NameDescription
requestPatchNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

firewallPolicyResourceFirewallPolicy

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
requestPatchNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestPatchNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

firewallPolicyResourceFirewallPolicy

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

firewallPolicyResourceFirewallPolicy

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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;
}

PatchRule(PatchRuleNetworkFirewallPolicyRequest, CallSettings)

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

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

firewallPolicyRuleResourceFirewallPolicyRule

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
requestPatchRuleNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestPatchRuleNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

firewallPolicyRuleResourceFirewallPolicyRule

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

firewallPolicyRuleResourceFirewallPolicyRule

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestRemoveAssociationNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
requestRemoveAssociationNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestRemoveAssociationNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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;
}

RemoveRule(RemoveRuleNetworkFirewallPolicyRequest, CallSettings)

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

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Operation, 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
NameDescription
requestRemoveRuleNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestRemoveRuleNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
projectString

Project ID for this request.

firewallPolicyString

Name of the firewall policy to update.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Operation, 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
NameDescription
requestSetIamPolicyNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
projectString

Project ID for this request.

resourceString

Name or id of the resource for this request.

globalSetPolicyRequestResourceGlobalSetPolicyRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
requestSetIamPolicyNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
projectString

Project ID for this request.

resourceString

Name or id of the resource for this request.

globalSetPolicyRequestResourceGlobalSetPolicyRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
projectString

Project ID for this request.

resourceString

Name or id of the resource for this request.

globalSetPolicyRequestResourceGlobalSetPolicyRequest

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(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
NameDescription
requestTestIamPermissionsNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
projectString

Project ID for this request.

resourceString

Name or id of the resource for this request.

testPermissionsRequestResourceTestPermissionsRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
requestTestIamPermissionsNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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
NameDescription
projectString

Project ID for this request.

resourceString

Name or id of the resource for this request.

testPermissionsRequestResourceTestPermissionsRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<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
NameDescription
projectString

Project ID for this request.

resourceString

Name or id of the resource for this request.

testPermissionsRequestResourceTestPermissionsRequest

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<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);