Compute Engine v1 API - Class RegionNetworkFirewallPoliciesClient (2.9.0)

public abstract class RegionNetworkFirewallPoliciesClient

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

RegionNetworkFirewallPolicies client wrapper, for convenient use.

Inheritance

object > RegionNetworkFirewallPoliciesClient

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The RegionNetworkFirewallPolicies 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 RegionNetworkFirewallPolicies 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 RegionNetworkFirewallPolicies scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

DeleteOperationsClient

public virtual OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual RegionNetworkFirewallPolicies.RegionNetworkFirewallPoliciesClient GrpcClient { get; }

The underlying gRPC RegionNetworkFirewallPolicies client

Property Value
TypeDescription
RegionNetworkFirewallPoliciesRegionNetworkFirewallPoliciesClient

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

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

Methods

AddAssociation(AddAssociationRegionNetworkFirewallPolicyRequest, CallSettings)

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

Inserts an association for the specified network firewall policy.

Parameters
NameDescription
requestAddAssociationRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
AddAssociationRegionNetworkFirewallPolicyRequest request = new AddAssociationRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    ReplaceExistingAssociation = false,
    Project = "",
    FirewallPolicyAssociationResource = new FirewallPolicyAssociation(),
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.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 = regionNetworkFirewallPoliciesClient.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, string, FirewallPolicyAssociation, CallSettings)

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

Inserts an association for the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
FirewallPolicyAssociation firewallPolicyAssociationResource = new FirewallPolicyAssociation();
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.AddAssociation(project, region, 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 = regionNetworkFirewallPoliciesClient.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(AddAssociationRegionNetworkFirewallPolicyRequest, CallSettings)

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

Inserts an association for the specified network firewall policy.

Parameters
NameDescription
requestAddAssociationRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
AddAssociationRegionNetworkFirewallPolicyRequest request = new AddAssociationRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    ReplaceExistingAssociation = false,
    Project = "",
    FirewallPolicyAssociationResource = new FirewallPolicyAssociation(),
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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(AddAssociationRegionNetworkFirewallPolicyRequest, CancellationToken)

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

Inserts an association for the specified network firewall policy.

Parameters
NameDescription
requestAddAssociationRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
AddAssociationRegionNetworkFirewallPolicyRequest request = new AddAssociationRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    ReplaceExistingAssociation = false,
    Project = "",
    FirewallPolicyAssociationResource = new FirewallPolicyAssociation(),
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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, string, FirewallPolicyAssociation, CallSettings)

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

Inserts an association for the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
FirewallPolicyAssociation firewallPolicyAssociationResource = new FirewallPolicyAssociation();
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.AddAssociationAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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, string, FirewallPolicyAssociation, CancellationToken)

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

Inserts an association for the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
FirewallPolicyAssociation firewallPolicyAssociationResource = new FirewallPolicyAssociation();
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.AddAssociationAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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(AddRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Inserts a rule into a network firewall policy.

Parameters
NameDescription
requestAddRuleRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
AddRuleRegionNetworkFirewallPolicyRequest request = new AddRuleRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicyRuleResource = new FirewallPolicyRule(),
    MinPriority = 0,
    MaxPriority = 0,
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.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 = regionNetworkFirewallPoliciesClient.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, string, FirewallPolicyRule, CallSettings)

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

Inserts a rule into a network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.AddRule(project, region, 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 = regionNetworkFirewallPoliciesClient.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(AddRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Inserts a rule into a network firewall policy.

Parameters
NameDescription
requestAddRuleRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
AddRuleRegionNetworkFirewallPolicyRequest request = new AddRuleRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicyRuleResource = new FirewallPolicyRule(),
    MinPriority = 0,
    MaxPriority = 0,
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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(AddRuleRegionNetworkFirewallPolicyRequest, CancellationToken)

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

Inserts a rule into a network firewall policy.

Parameters
NameDescription
requestAddRuleRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
AddRuleRegionNetworkFirewallPolicyRequest request = new AddRuleRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicyRuleResource = new FirewallPolicyRule(),
    MinPriority = 0,
    MaxPriority = 0,
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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, string, FirewallPolicyRule, CallSettings)

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

Inserts a rule into a network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.AddRuleAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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, string, FirewallPolicyRule, CancellationToken)

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

Inserts a rule into a network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.AddRuleAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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(CloneRulesRegionNetworkFirewallPolicyRequest, CallSettings)

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

Copies rules to the specified network firewall policy.

Parameters
NameDescription
requestCloneRulesRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
CloneRulesRegionNetworkFirewallPolicyRequest request = new CloneRulesRegionNetworkFirewallPolicyRequest
{
    SourceFirewallPolicy = "",
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.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 = regionNetworkFirewallPoliciesClient.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, string, CallSettings)

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

Copies rules to the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.CloneRules(project, region, 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 = regionNetworkFirewallPoliciesClient.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(CloneRulesRegionNetworkFirewallPolicyRequest, CallSettings)

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

Copies rules to the specified network firewall policy.

Parameters
NameDescription
requestCloneRulesRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
CloneRulesRegionNetworkFirewallPolicyRequest request = new CloneRulesRegionNetworkFirewallPolicyRequest
{
    SourceFirewallPolicy = "",
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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(CloneRulesRegionNetworkFirewallPolicyRequest, CancellationToken)

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

Copies rules to the specified network firewall policy.

Parameters
NameDescription
requestCloneRulesRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
CloneRulesRegionNetworkFirewallPolicyRequest request = new CloneRulesRegionNetworkFirewallPolicyRequest
{
    SourceFirewallPolicy = "",
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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, string, CallSettings)

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

Copies rules to the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.CloneRulesAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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, string, CancellationToken)

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

Copies rules to the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to update.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.CloneRulesAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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 RegionNetworkFirewallPoliciesClient Create()

Synchronously creates a RegionNetworkFirewallPoliciesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegionNetworkFirewallPoliciesClientBuilder.

Returns
TypeDescription
RegionNetworkFirewallPoliciesClient

The created RegionNetworkFirewallPoliciesClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskRegionNetworkFirewallPoliciesClient

The task representing the created RegionNetworkFirewallPoliciesClient.

Delete(DeleteRegionNetworkFirewallPolicyRequest, CallSettings)

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

Deletes the specified network firewall policy.

Parameters
NameDescription
requestDeleteRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
DeleteRegionNetworkFirewallPolicyRequest request = new DeleteRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.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 = regionNetworkFirewallPoliciesClient.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, string, CallSettings)

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

Deletes the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.Delete(project, region, 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 = regionNetworkFirewallPoliciesClient.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(DeleteRegionNetworkFirewallPolicyRequest, CallSettings)

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

Deletes the specified network firewall policy.

Parameters
NameDescription
requestDeleteRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionNetworkFirewallPolicyRequest request = new DeleteRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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(DeleteRegionNetworkFirewallPolicyRequest, CancellationToken)

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

Deletes the specified network firewall policy.

Parameters
NameDescription
requestDeleteRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionNetworkFirewallPolicyRequest request = new DeleteRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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, string, CallSettings)

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

Deletes the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.DeleteAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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, string, CancellationToken)

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

Deletes the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.DeleteAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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(GetRegionNetworkFirewallPolicyRequest, CallSettings)

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

Returns the specified network firewall policy.

Parameters
NameDescription
requestGetRegionNetworkFirewallPolicyRequest

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
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
GetRegionNetworkFirewallPolicyRequest request = new GetRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
FirewallPolicy response = regionNetworkFirewallPoliciesClient.Get(request);

Get(string, string, string, CallSettings)

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

Returns the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
FirewallPolicy response = regionNetworkFirewallPoliciesClient.Get(project, region, firewallPolicy);

GetAssociation(GetAssociationRegionNetworkFirewallPolicyRequest, CallSettings)

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

Gets an association with the specified name.

Parameters
NameDescription
requestGetAssociationRegionNetworkFirewallPolicyRequest

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
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
GetAssociationRegionNetworkFirewallPolicyRequest request = new GetAssociationRegionNetworkFirewallPolicyRequest
{
    Name = "",
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
FirewallPolicyAssociation response = regionNetworkFirewallPoliciesClient.GetAssociation(request);

GetAssociation(string, string, string, CallSettings)

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

Gets an association with the specified name.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
FirewallPolicyAssociation response = regionNetworkFirewallPoliciesClient.GetAssociation(project, region, firewallPolicy);

GetAssociationAsync(GetAssociationRegionNetworkFirewallPolicyRequest, CallSettings)

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

Gets an association with the specified name.

Parameters
NameDescription
requestGetAssociationRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFirewallPolicyAssociation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetAssociationRegionNetworkFirewallPolicyRequest request = new GetAssociationRegionNetworkFirewallPolicyRequest
{
    Name = "",
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
FirewallPolicyAssociation response = await regionNetworkFirewallPoliciesClient.GetAssociationAsync(request);

GetAssociationAsync(GetAssociationRegionNetworkFirewallPolicyRequest, CancellationToken)

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

Gets an association with the specified name.

Parameters
NameDescription
requestGetAssociationRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFirewallPolicyAssociation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetAssociationRegionNetworkFirewallPolicyRequest request = new GetAssociationRegionNetworkFirewallPolicyRequest
{
    Name = "",
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
FirewallPolicyAssociation response = await regionNetworkFirewallPoliciesClient.GetAssociationAsync(request);

GetAssociationAsync(string, string, string, CallSettings)

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

Gets an association with the specified name.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
TaskFirewallPolicyAssociation

A Task containing the RPC response.

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

GetAssociationAsync(string, string, string, CancellationToken)

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

Gets an association with the specified name.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFirewallPolicyAssociation

A Task containing the RPC response.

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

GetAsync(GetRegionNetworkFirewallPolicyRequest, CallSettings)

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

Returns the specified network firewall policy.

Parameters
NameDescription
requestGetRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFirewallPolicy

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetRegionNetworkFirewallPolicyRequest request = new GetRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
FirewallPolicy response = await regionNetworkFirewallPoliciesClient.GetAsync(request);

GetAsync(GetRegionNetworkFirewallPolicyRequest, CancellationToken)

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

Returns the specified network firewall policy.

Parameters
NameDescription
requestGetRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFirewallPolicy

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetRegionNetworkFirewallPolicyRequest request = new GetRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
FirewallPolicy response = await regionNetworkFirewallPoliciesClient.GetAsync(request);

GetAsync(string, string, string, CallSettings)

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

Returns the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFirewallPolicy

A Task containing the RPC response.

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

GetAsync(string, string, string, CancellationToken)

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

Returns the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFirewallPolicy

A Task containing the RPC response.

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

GetEffectiveFirewalls(GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest, CallSettings)

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

Returns the effective firewalls on a given network.

Parameters
NameDescription
requestGetEffectiveFirewallsRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest request = new GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Project = "",
    Network = "",
};
// Make the request
RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse response = regionNetworkFirewallPoliciesClient.GetEffectiveFirewalls(request);

GetEffectiveFirewalls(string, string, string, CallSettings)

public virtual RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse GetEffectiveFirewalls(string project, string region, string network, CallSettings callSettings = null)

Returns the effective firewalls on a given network.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkstring

Network reference

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string network = "";
// Make the request
RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse response = regionNetworkFirewallPoliciesClient.GetEffectiveFirewalls(project, region, network);

GetEffectiveFirewallsAsync(GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest, CallSettings)

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

Returns the effective firewalls on a given network.

Parameters
NameDescription
requestGetEffectiveFirewallsRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest request = new GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Project = "",
    Network = "",
};
// Make the request
RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse response = await regionNetworkFirewallPoliciesClient.GetEffectiveFirewallsAsync(request);

GetEffectiveFirewallsAsync(GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest, CancellationToken)

public virtual Task<RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse> GetEffectiveFirewallsAsync(GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Returns the effective firewalls on a given network.

Parameters
NameDescription
requestGetEffectiveFirewallsRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest request = new GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Project = "",
    Network = "",
};
// Make the request
RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse response = await regionNetworkFirewallPoliciesClient.GetEffectiveFirewallsAsync(request);

GetEffectiveFirewallsAsync(string, string, string, CallSettings)

public virtual Task<RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse> GetEffectiveFirewallsAsync(string project, string region, string network, CallSettings callSettings = null)

Returns the effective firewalls on a given network.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkstring

Network reference

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string network = "";
// Make the request
RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse response = await regionNetworkFirewallPoliciesClient.GetEffectiveFirewallsAsync(project, region, network);

GetEffectiveFirewallsAsync(string, string, string, CancellationToken)

public virtual Task<RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse> GetEffectiveFirewallsAsync(string project, string region, string network, CancellationToken cancellationToken)

Returns the effective firewalls on a given network.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

networkstring

Network reference

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string network = "";
// Make the request
RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse response = await regionNetworkFirewallPoliciesClient.GetEffectiveFirewallsAsync(project, region, network);

GetIamPolicy(GetIamPolicyRegionNetworkFirewallPolicyRequest, CallSettings)

public virtual Policy GetIamPolicy(GetIamPolicyRegionNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetIamPolicyRegionNetworkFirewallPolicyRequest

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
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
GetIamPolicyRegionNetworkFirewallPolicyRequest request = new GetIamPolicyRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = regionNetworkFirewallPoliciesClient.GetIamPolicy(request);

GetIamPolicy(string, string, string, CallSettings)

public virtual Policy GetIamPolicy(string project, string region, 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.

regionstring

The name of the region 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
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
// Make the request
Policy response = regionNetworkFirewallPoliciesClient.GetIamPolicy(project, region, resource);

GetIamPolicyAsync(GetIamPolicyRegionNetworkFirewallPolicyRequest, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRegionNetworkFirewallPolicyRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetIamPolicyRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRegionNetworkFirewallPolicyRequest request = new GetIamPolicyRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await regionNetworkFirewallPoliciesClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(GetIamPolicyRegionNetworkFirewallPolicyRequest, CancellationToken)

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

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

Parameters
NameDescription
requestGetIamPolicyRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRegionNetworkFirewallPolicyRequest request = new GetIamPolicyRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await regionNetworkFirewallPoliciesClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(string, string, string, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(string project, string region, 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.

regionstring

The name of the region 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
TaskPolicy

A Task containing the RPC response.

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

GetIamPolicyAsync(string, string, string, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(string project, string region, 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.

regionstring

The name of the region for this request.

resourcestring

Name or id of the resource for this request.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

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

GetRule(GetRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Gets a rule of the specified priority.

Parameters
NameDescription
requestGetRuleRegionNetworkFirewallPolicyRequest

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
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
GetRuleRegionNetworkFirewallPolicyRequest request = new GetRuleRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Project = "",
    Priority = 0,
    FirewallPolicy = "",
};
// Make the request
FirewallPolicyRule response = regionNetworkFirewallPoliciesClient.GetRule(request);

GetRule(string, string, string, CallSettings)

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

Gets a rule of the specified priority.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
FirewallPolicyRule response = regionNetworkFirewallPoliciesClient.GetRule(project, region, firewallPolicy);

GetRuleAsync(GetRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Gets a rule of the specified priority.

Parameters
NameDescription
requestGetRuleRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFirewallPolicyRule

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetRuleRegionNetworkFirewallPolicyRequest request = new GetRuleRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Project = "",
    Priority = 0,
    FirewallPolicy = "",
};
// Make the request
FirewallPolicyRule response = await regionNetworkFirewallPoliciesClient.GetRuleAsync(request);

GetRuleAsync(GetRuleRegionNetworkFirewallPolicyRequest, CancellationToken)

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

Gets a rule of the specified priority.

Parameters
NameDescription
requestGetRuleRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFirewallPolicyRule

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetRuleRegionNetworkFirewallPolicyRequest request = new GetRuleRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Project = "",
    Priority = 0,
    FirewallPolicy = "",
};
// Make the request
FirewallPolicyRule response = await regionNetworkFirewallPoliciesClient.GetRuleAsync(request);

GetRuleAsync(string, string, string, CallSettings)

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

Gets a rule of the specified priority.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
TaskFirewallPolicyRule

A Task containing the RPC response.

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

GetRuleAsync(string, string, string, CancellationToken)

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

Gets a rule of the specified priority.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFirewallPolicyRule

A Task containing the RPC response.

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

Insert(InsertRegionNetworkFirewallPolicyRequest, CallSettings)

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

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

Parameters
NameDescription
requestInsertRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
InsertRegionNetworkFirewallPolicyRequest request = new InsertRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicyResource = new FirewallPolicy(),
};
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.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 = regionNetworkFirewallPoliciesClient.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, string, FirewallPolicy, CallSettings)

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

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

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicyResourceFirewallPolicy

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
FirewallPolicy firewallPolicyResource = new FirewallPolicy();
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.Insert(project, region, 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 = regionNetworkFirewallPoliciesClient.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(InsertRegionNetworkFirewallPolicyRequest, CallSettings)

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

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

Parameters
NameDescription
requestInsertRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
InsertRegionNetworkFirewallPolicyRequest request = new InsertRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicyResource = new FirewallPolicy(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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(InsertRegionNetworkFirewallPolicyRequest, CancellationToken)

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

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

Parameters
NameDescription
requestInsertRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
InsertRegionNetworkFirewallPolicyRequest request = new InsertRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicyResource = new FirewallPolicy(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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, string, FirewallPolicy, CallSettings)

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

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

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicyResourceFirewallPolicy

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
FirewallPolicy firewallPolicyResource = new FirewallPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.InsertAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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, string, FirewallPolicy, CancellationToken)

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

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

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicyResourceFirewallPolicy

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
FirewallPolicy firewallPolicyResource = new FirewallPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.InsertAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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(ListRegionNetworkFirewallPoliciesRequest, CallSettings)

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

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

Parameters
NameDescription
requestListRegionNetworkFirewallPoliciesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableFirewallPolicyListFirewallPolicy

A pageable sequence of FirewallPolicy resources.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
ListRegionNetworkFirewallPoliciesRequest request = new ListRegionNetworkFirewallPoliciesRequest
{
    Region = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<FirewallPolicyList, FirewallPolicy> response = regionNetworkFirewallPoliciesClient.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, string, int?, CallSettings)

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

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

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

pageTokenstring

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

pageSizeint

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
PagedEnumerableFirewallPolicyListFirewallPolicy

A pageable sequence of FirewallPolicy resources.

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

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

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

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

Parameters
NameDescription
requestListRegionNetworkFirewallPoliciesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableFirewallPolicyListFirewallPolicy

A pageable asynchronous sequence of FirewallPolicy resources.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
ListRegionNetworkFirewallPoliciesRequest request = new ListRegionNetworkFirewallPoliciesRequest
{
    Region = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy> response = regionNetworkFirewallPoliciesClient.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, string, int?, CallSettings)

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

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

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

pageTokenstring

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

pageSizeint

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
PagedAsyncEnumerableFirewallPolicyListFirewallPolicy

A pageable asynchronous sequence of FirewallPolicy resources.

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

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

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

Patches the specified network firewall policy.

Parameters
NameDescription
requestPatchRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
PatchRegionNetworkFirewallPolicyRequest request = new PatchRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicyResource = new FirewallPolicy(),
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.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 = regionNetworkFirewallPoliciesClient.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, string, FirewallPolicy, CallSettings)

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

Patches the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
FirewallPolicy firewallPolicyResource = new FirewallPolicy();
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.Patch(project, region, 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 = regionNetworkFirewallPoliciesClient.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(PatchRegionNetworkFirewallPolicyRequest, CallSettings)

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

Patches the specified network firewall policy.

Parameters
NameDescription
requestPatchRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
PatchRegionNetworkFirewallPolicyRequest request = new PatchRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicyResource = new FirewallPolicy(),
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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(PatchRegionNetworkFirewallPolicyRequest, CancellationToken)

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

Patches the specified network firewall policy.

Parameters
NameDescription
requestPatchRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
PatchRegionNetworkFirewallPolicyRequest request = new PatchRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicyResource = new FirewallPolicy(),
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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, string, FirewallPolicy, CallSettings)

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

Patches the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
FirewallPolicy firewallPolicyResource = new FirewallPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.PatchAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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, string, FirewallPolicy, CancellationToken)

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

Patches the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
FirewallPolicy firewallPolicyResource = new FirewallPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.PatchAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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(PatchRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
PatchRuleRegionNetworkFirewallPolicyRequest request = new PatchRuleRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicyRuleResource = new FirewallPolicyRule(),
    Priority = 0,
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.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 = regionNetworkFirewallPoliciesClient.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, string, FirewallPolicyRule, CallSettings)

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

Patches a rule of the specified priority.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.PatchRule(project, region, 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 = regionNetworkFirewallPoliciesClient.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(PatchRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
PatchRuleRegionNetworkFirewallPolicyRequest request = new PatchRuleRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicyRuleResource = new FirewallPolicyRule(),
    Priority = 0,
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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(PatchRuleRegionNetworkFirewallPolicyRequest, CancellationToken)

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

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
PatchRuleRegionNetworkFirewallPolicyRequest request = new PatchRuleRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicyRuleResource = new FirewallPolicyRule(),
    Priority = 0,
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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, string, FirewallPolicyRule, CallSettings)

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

Patches a rule of the specified priority.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.PatchRuleAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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, string, FirewallPolicyRule, CancellationToken)

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

Patches a rule of the specified priority.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping 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
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.PatchRuleAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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
OperationOperationOperation

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
TaskOperationOperationOperation

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
OperationOperationOperation

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
TaskOperationOperationOperation

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
OperationOperationOperation

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
TaskOperationOperationOperation

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
OperationOperationOperation

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
TaskOperationOperationOperation

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
OperationOperationOperation

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
TaskOperationOperationOperation

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
OperationOperationOperation

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
TaskOperationOperationOperation

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
OperationOperationOperation

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
TaskOperationOperationOperation

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
OperationOperationOperation

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
TaskOperationOperationOperation

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
OperationOperationOperation

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
TaskOperationOperationOperation

A task representing the result of polling the operation.

RemoveAssociation(RemoveAssociationRegionNetworkFirewallPolicyRequest, CallSettings)

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

Removes an association for the specified network firewall policy.

Parameters
NameDescription
requestRemoveAssociationRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
RemoveAssociationRegionNetworkFirewallPolicyRequest request = new RemoveAssociationRegionNetworkFirewallPolicyRequest
{
    Name = "",
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.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 = regionNetworkFirewallPoliciesClient.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, string, CallSettings)

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

Removes an association for the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.RemoveAssociation(project, region, 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 = regionNetworkFirewallPoliciesClient.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(RemoveAssociationRegionNetworkFirewallPolicyRequest, CallSettings)

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

Removes an association for the specified network firewall policy.

Parameters
NameDescription
requestRemoveAssociationRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
RemoveAssociationRegionNetworkFirewallPolicyRequest request = new RemoveAssociationRegionNetworkFirewallPolicyRequest
{
    Name = "",
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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(RemoveAssociationRegionNetworkFirewallPolicyRequest, CancellationToken)

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

Removes an association for the specified network firewall policy.

Parameters
NameDescription
requestRemoveAssociationRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
RemoveAssociationRegionNetworkFirewallPolicyRequest request = new RemoveAssociationRegionNetworkFirewallPolicyRequest
{
    Name = "",
    RequestId = "",
    Region = "",
    Project = "",
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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, string, CallSettings)

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

Removes an association for the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.RemoveAssociationAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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, string, CancellationToken)

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

Removes an association for the specified network firewall policy.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to update.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.RemoveAssociationAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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(RemoveRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
RemoveRuleRegionNetworkFirewallPolicyRequest request = new RemoveRuleRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    Priority = 0,
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.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 = regionNetworkFirewallPoliciesClient.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, string, CallSettings)

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

Deletes a rule of the specified priority.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = regionNetworkFirewallPoliciesClient.RemoveRule(project, region, 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 = regionNetworkFirewallPoliciesClient.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(RemoveRuleRegionNetworkFirewallPolicyRequest, CallSettings)

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

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
RemoveRuleRegionNetworkFirewallPolicyRequest request = new RemoveRuleRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    Priority = 0,
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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(RemoveRuleRegionNetworkFirewallPolicyRequest, CancellationToken)

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

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
RemoveRuleRegionNetworkFirewallPolicyRequest request = new RemoveRuleRegionNetworkFirewallPolicyRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    Priority = 0,
    FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.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 regionNetworkFirewallPoliciesClient.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, string, CallSettings)

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

Deletes a rule of the specified priority.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to update.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.RemoveRuleAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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, string, CancellationToken)

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

Deletes a rule of the specified priority.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

Name of the region scoping this request.

firewallPolicystring

Name of the firewall policy to update.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionNetworkFirewallPoliciesClient.RemoveRuleAsync(project, region, 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 regionNetworkFirewallPoliciesClient.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(SetIamPolicyRegionNetworkFirewallPolicyRequest, CallSettings)

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

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

Parameters
NameDescription
requestSetIamPolicyRegionNetworkFirewallPolicyRequest

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
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
SetIamPolicyRegionNetworkFirewallPolicyRequest request = new SetIamPolicyRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Resource = "",
    Project = "",
    RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
};
// Make the request
Policy response = regionNetworkFirewallPoliciesClient.SetIamPolicy(request);

SetIamPolicy(string, string, string, RegionSetPolicyRequest, CallSettings)

public virtual Policy SetIamPolicy(string project, string region, string resource, RegionSetPolicyRequest regionSetPolicyRequestResource, CallSettings callSettings = null)

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

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

The name of the region for this request.

resourcestring

Name or id of the resource for this request.

regionSetPolicyRequestResourceRegionSetPolicyRequest

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
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
// Make the request
Policy response = regionNetworkFirewallPoliciesClient.SetIamPolicy(project, region, resource, regionSetPolicyRequestResource);

SetIamPolicyAsync(SetIamPolicyRegionNetworkFirewallPolicyRequest, CallSettings)

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

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

Parameters
NameDescription
requestSetIamPolicyRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRegionNetworkFirewallPolicyRequest request = new SetIamPolicyRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Resource = "",
    Project = "",
    RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
};
// Make the request
Policy response = await regionNetworkFirewallPoliciesClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(SetIamPolicyRegionNetworkFirewallPolicyRequest, CancellationToken)

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

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

Parameters
NameDescription
requestSetIamPolicyRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRegionNetworkFirewallPolicyRequest request = new SetIamPolicyRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Resource = "",
    Project = "",
    RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
};
// Make the request
Policy response = await regionNetworkFirewallPoliciesClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CallSettings)

public virtual Task<Policy> SetIamPolicyAsync(string project, string region, string resource, RegionSetPolicyRequest regionSetPolicyRequestResource, CallSettings callSettings = null)

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

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

The name of the region for this request.

resourcestring

Name or id of the resource for this request.

regionSetPolicyRequestResourceRegionSetPolicyRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
// Make the request
Policy response = await regionNetworkFirewallPoliciesClient.SetIamPolicyAsync(project, region, resource, regionSetPolicyRequestResource);

SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CancellationToken)

public virtual Task<Policy> SetIamPolicyAsync(string project, string region, string resource, RegionSetPolicyRequest regionSetPolicyRequestResource, CancellationToken cancellationToken)

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

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

The name of the region for this request.

resourcestring

Name or id of the resource for this request.

regionSetPolicyRequestResourceRegionSetPolicyRequest

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
// Make the request
Policy response = await regionNetworkFirewallPoliciesClient.SetIamPolicyAsync(project, region, resource, regionSetPolicyRequestResource);

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

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

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsRegionNetworkFirewallPolicyRequest

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
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
TestIamPermissionsRegionNetworkFirewallPolicyRequest request = new TestIamPermissionsRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = regionNetworkFirewallPoliciesClient.TestIamPermissions(request);

TestIamPermissions(string, string, string, TestPermissionsRequest, CallSettings)

public virtual TestPermissionsResponse TestIamPermissions(string project, string region, 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.

regionstring

The name of the region 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
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = RegionNetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = regionNetworkFirewallPoliciesClient.TestIamPermissions(project, region, resource, testPermissionsRequestResource);

TestIamPermissionsAsync(TestIamPermissionsRegionNetworkFirewallPolicyRequest, CallSettings)

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

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsRegionNetworkFirewallPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRegionNetworkFirewallPolicyRequest request = new TestIamPermissionsRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await regionNetworkFirewallPoliciesClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(TestIamPermissionsRegionNetworkFirewallPolicyRequest, CancellationToken)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsRegionNetworkFirewallPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRegionNetworkFirewallPolicyRequest request = new TestIamPermissionsRegionNetworkFirewallPolicyRequest
{
    Region = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await regionNetworkFirewallPoliciesClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CallSettings)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string region, 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.

regionstring

The name of the region 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
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await regionNetworkFirewallPoliciesClient.TestIamPermissionsAsync(project, region, resource, testPermissionsRequestResource);

TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CancellationToken)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CancellationToken cancellationToken)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
projectstring

Project ID for this request.

regionstring

The name of the region 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
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = await RegionNetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await regionNetworkFirewallPoliciesClient.TestIamPermissionsAsync(project, region, resource, testPermissionsRequestResource);