public abstract class NetworkFirewallPoliciesClient
NetworkFirewallPolicies client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The NetworkFirewallPolicies API.
Properties
AddAssociationOperationsClient
public virtual OperationsClient AddAssociationOperationsClient { get; }
The long-running operations client for AddAssociation
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
AddRuleOperationsClient
public virtual OperationsClient AddRuleOperationsClient { get; }
The long-running operations client for AddRule
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CloneRulesOperationsClient
public virtual OperationsClient CloneRulesOperationsClient { get; }
The long-running operations client for CloneRules
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the NetworkFirewallPolicies service, which is a host of "compute.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default NetworkFirewallPolicies scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default NetworkFirewallPolicies scopes are:
DeleteOperationsClient
public virtual OperationsClient DeleteOperationsClient { get; }
The long-running operations client for Delete
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual NetworkFirewallPolicies.NetworkFirewallPoliciesClient GrpcClient { get; }
The underlying gRPC NetworkFirewallPolicies client
Property Value | |
---|---|
Type | Description |
NetworkFirewallPolicies.NetworkFirewallPoliciesClient |
InsertOperationsClient
public virtual OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchOperationsClient
public virtual OperationsClient PatchOperationsClient { get; }
The long-running operations client for Patch
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchRuleOperationsClient
public virtual OperationsClient PatchRuleOperationsClient { get; }
The long-running operations client for PatchRule
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
RemoveAssociationOperationsClient
public virtual OperationsClient RemoveAssociationOperationsClient { get; }
The long-running operations client for RemoveAssociation
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
RemoveRuleOperationsClient
public virtual OperationsClient RemoveRuleOperationsClient { get; }
The long-running operations client for RemoveRule
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
AddAssociation(AddAssociationNetworkFirewallPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> AddAssociation(AddAssociationNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Inserts an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | AddAssociationNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
AddAssociationNetworkFirewallPolicyRequest request = new AddAssociationNetworkFirewallPolicyRequest
{
RequestId = "",
ReplaceExistingAssociation = false,
Project = "",
FirewallPolicyAssociationResource = new FirewallPolicyAssociation(),
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.AddAssociation(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceAddAssociation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
AddAssociation(String, String, FirewallPolicyAssociation, CallSettings)
public virtual Operation<Operation, Operation> AddAssociation(string project, string firewallPolicy, FirewallPolicyAssociation firewallPolicyAssociationResource, CallSettings callSettings = null)
Inserts an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
firewallPolicyAssociationResource | FirewallPolicyAssociation The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
FirewallPolicyAssociation firewallPolicyAssociationResource = new FirewallPolicyAssociation();
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.AddAssociation(project, firewallPolicy, firewallPolicyAssociationResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceAddAssociation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
AddAssociationAsync(AddAssociationNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> AddAssociationAsync(AddAssociationNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Inserts an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | AddAssociationNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
AddAssociationNetworkFirewallPolicyRequest request = new AddAssociationNetworkFirewallPolicyRequest
{
RequestId = "",
ReplaceExistingAssociation = false,
Project = "",
FirewallPolicyAssociationResource = new FirewallPolicyAssociation(),
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddAssociationAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddAssociationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
AddAssociationAsync(AddAssociationNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> AddAssociationAsync(AddAssociationNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Inserts an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | AddAssociationNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
AddAssociationNetworkFirewallPolicyRequest request = new AddAssociationNetworkFirewallPolicyRequest
{
RequestId = "",
ReplaceExistingAssociation = false,
Project = "",
FirewallPolicyAssociationResource = new FirewallPolicyAssociation(),
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddAssociationAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddAssociationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
AddAssociationAsync(String, String, FirewallPolicyAssociation, CallSettings)
public virtual Task<Operation<Operation, Operation>> AddAssociationAsync(string project, string firewallPolicy, FirewallPolicyAssociation firewallPolicyAssociationResource, CallSettings callSettings = null)
Inserts an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
firewallPolicyAssociationResource | FirewallPolicyAssociation The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
FirewallPolicyAssociation firewallPolicyAssociationResource = new FirewallPolicyAssociation();
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddAssociationAsync(project, firewallPolicy, firewallPolicyAssociationResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddAssociationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
AddAssociationAsync(String, String, FirewallPolicyAssociation, CancellationToken)
public virtual Task<Operation<Operation, Operation>> AddAssociationAsync(string project, string firewallPolicy, FirewallPolicyAssociation firewallPolicyAssociationResource, CancellationToken cancellationToken)
Inserts an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
firewallPolicyAssociationResource | FirewallPolicyAssociation The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
FirewallPolicyAssociation firewallPolicyAssociationResource = new FirewallPolicyAssociation();
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddAssociationAsync(project, firewallPolicy, firewallPolicyAssociationResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddAssociationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
AddRule(AddRuleNetworkFirewallPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> AddRule(AddRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Inserts a rule into a firewall policy.
Parameters | |
---|---|
Name | Description |
request | AddRuleNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
AddRuleNetworkFirewallPolicyRequest request = new AddRuleNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicyRuleResource = new FirewallPolicyRule(),
MinPriority = 0,
MaxPriority = 0,
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.AddRule(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceAddRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
AddRule(String, String, FirewallPolicyRule, CallSettings)
public virtual Operation<Operation, Operation> AddRule(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CallSettings callSettings = null)
Inserts a rule into a firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
firewallPolicyRuleResource | FirewallPolicyRule The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.AddRule(project, firewallPolicy, firewallPolicyRuleResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceAddRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
AddRuleAsync(AddRuleNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> AddRuleAsync(AddRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Inserts a rule into a firewall policy.
Parameters | |
---|---|
Name | Description |
request | AddRuleNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
AddRuleNetworkFirewallPolicyRequest request = new AddRuleNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicyRuleResource = new FirewallPolicyRule(),
MinPriority = 0,
MaxPriority = 0,
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddRuleAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
AddRuleAsync(AddRuleNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> AddRuleAsync(AddRuleNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Inserts a rule into a firewall policy.
Parameters | |
---|---|
Name | Description |
request | AddRuleNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
AddRuleNetworkFirewallPolicyRequest request = new AddRuleNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicyRuleResource = new FirewallPolicyRule(),
MinPriority = 0,
MaxPriority = 0,
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddRuleAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
AddRuleAsync(String, String, FirewallPolicyRule, CallSettings)
public virtual Task<Operation<Operation, Operation>> AddRuleAsync(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CallSettings callSettings = null)
Inserts a rule into a firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
firewallPolicyRuleResource | FirewallPolicyRule The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddRuleAsync(project, firewallPolicy, firewallPolicyRuleResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
AddRuleAsync(String, String, FirewallPolicyRule, CancellationToken)
public virtual Task<Operation<Operation, Operation>> AddRuleAsync(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CancellationToken cancellationToken)
Inserts a rule into a firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
firewallPolicyRuleResource | FirewallPolicyRule The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.AddRuleAsync(project, firewallPolicy, firewallPolicyRuleResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceAddRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
CloneRules(CloneRulesNetworkFirewallPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> CloneRules(CloneRulesNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Copies rules to the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | CloneRulesNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
CloneRulesNetworkFirewallPolicyRequest request = new CloneRulesNetworkFirewallPolicyRequest
{
SourceFirewallPolicy = "",
RequestId = "",
Project = "",
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.CloneRules(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceCloneRules(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
CloneRules(String, String, CallSettings)
public virtual Operation<Operation, Operation> CloneRules(string project, string firewallPolicy, CallSettings callSettings = null)
Copies rules to the specified firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.CloneRules(project, firewallPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceCloneRules(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
CloneRulesAsync(CloneRulesNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> CloneRulesAsync(CloneRulesNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Copies rules to the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | CloneRulesNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
CloneRulesNetworkFirewallPolicyRequest request = new CloneRulesNetworkFirewallPolicyRequest
{
SourceFirewallPolicy = "",
RequestId = "",
Project = "",
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.CloneRulesAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceCloneRulesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
CloneRulesAsync(CloneRulesNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> CloneRulesAsync(CloneRulesNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Copies rules to the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | CloneRulesNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
CloneRulesNetworkFirewallPolicyRequest request = new CloneRulesNetworkFirewallPolicyRequest
{
SourceFirewallPolicy = "",
RequestId = "",
Project = "",
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.CloneRulesAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceCloneRulesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
CloneRulesAsync(String, String, CallSettings)
public virtual Task<Operation<Operation, Operation>> CloneRulesAsync(string project, string firewallPolicy, CallSettings callSettings = null)
Copies rules to the specified firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.CloneRulesAsync(project, firewallPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceCloneRulesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
CloneRulesAsync(String, String, CancellationToken)
public virtual Task<Operation<Operation, Operation>> CloneRulesAsync(string project, string firewallPolicy, CancellationToken cancellationToken)
Copies rules to the specified firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.CloneRulesAsync(project, firewallPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceCloneRulesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Create()
public static NetworkFirewallPoliciesClient Create()
Synchronously creates a NetworkFirewallPoliciesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NetworkFirewallPoliciesClientBuilder.
Returns | |
---|---|
Type | Description |
NetworkFirewallPoliciesClient | The created NetworkFirewallPoliciesClient. |
CreateAsync(CancellationToken)
public static Task<NetworkFirewallPoliciesClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a NetworkFirewallPoliciesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NetworkFirewallPoliciesClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
Task<NetworkFirewallPoliciesClient> | The task representing the created NetworkFirewallPoliciesClient. |
Delete(DeleteNetworkFirewallPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> Delete(DeleteNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
DeleteNetworkFirewallPolicyRequest request = new DeleteNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.Delete(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Delete(String, String, CallSettings)
public virtual Operation<Operation, Operation> Delete(string project, string firewallPolicy, CallSettings callSettings = null)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.Delete(project, firewallPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(DeleteNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
DeleteNetworkFirewallPolicyRequest request = new DeleteNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.DeleteAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(DeleteNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
DeleteNetworkFirewallPolicyRequest request = new DeleteNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.DeleteAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(String, String, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string firewallPolicy, CallSettings callSettings = null)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.DeleteAsync(project, firewallPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(String, String, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string firewallPolicy, CancellationToken cancellationToken)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to delete. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.DeleteAsync(project, firewallPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Get(GetNetworkFirewallPolicyRequest, CallSettings)
public virtual FirewallPolicy Get(GetNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Returns the specified network firewall policy.
Parameters | |
---|---|
Name | Description |
request | GetNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FirewallPolicy | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
GetNetworkFirewallPolicyRequest request = new GetNetworkFirewallPolicyRequest
{
Project = "",
FirewallPolicy = "",
};
// Make the request
FirewallPolicy response = networkFirewallPoliciesClient.Get(request);
Get(String, String, CallSettings)
public virtual FirewallPolicy Get(string project, string firewallPolicy, CallSettings callSettings = null)
Returns the specified network firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FirewallPolicy | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
FirewallPolicy response = networkFirewallPoliciesClient.Get(project, firewallPolicy);
GetAssociation(GetAssociationNetworkFirewallPolicyRequest, CallSettings)
public virtual FirewallPolicyAssociation GetAssociation(GetAssociationNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Gets an association with the specified name.
Parameters | |
---|---|
Name | Description |
request | GetAssociationNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FirewallPolicyAssociation | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
GetAssociationNetworkFirewallPolicyRequest request = new GetAssociationNetworkFirewallPolicyRequest
{
Name = "",
Project = "",
FirewallPolicy = "",
};
// Make the request
FirewallPolicyAssociation response = networkFirewallPoliciesClient.GetAssociation(request);
GetAssociation(String, String, CallSettings)
public virtual FirewallPolicyAssociation GetAssociation(string project, string firewallPolicy, CallSettings callSettings = null)
Gets an association with the specified name.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to which the queried association belongs. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FirewallPolicyAssociation | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
FirewallPolicyAssociation response = networkFirewallPoliciesClient.GetAssociation(project, firewallPolicy);
GetAssociationAsync(GetAssociationNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<FirewallPolicyAssociation> GetAssociationAsync(GetAssociationNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Gets an association with the specified name.
Parameters | |
---|---|
Name | Description |
request | GetAssociationNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<FirewallPolicyAssociation> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetAssociationNetworkFirewallPolicyRequest request = new GetAssociationNetworkFirewallPolicyRequest
{
Name = "",
Project = "",
FirewallPolicy = "",
};
// Make the request
FirewallPolicyAssociation response = await networkFirewallPoliciesClient.GetAssociationAsync(request);
GetAssociationAsync(GetAssociationNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<FirewallPolicyAssociation> GetAssociationAsync(GetAssociationNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Gets an association with the specified name.
Parameters | |
---|---|
Name | Description |
request | GetAssociationNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<FirewallPolicyAssociation> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetAssociationNetworkFirewallPolicyRequest request = new GetAssociationNetworkFirewallPolicyRequest
{
Name = "",
Project = "",
FirewallPolicy = "",
};
// Make the request
FirewallPolicyAssociation response = await networkFirewallPoliciesClient.GetAssociationAsync(request);
GetAssociationAsync(String, String, CallSettings)
public virtual Task<FirewallPolicyAssociation> GetAssociationAsync(string project, string firewallPolicy, CallSettings callSettings = null)
Gets an association with the specified name.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to which the queried association belongs. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<FirewallPolicyAssociation> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
FirewallPolicyAssociation response = await networkFirewallPoliciesClient.GetAssociationAsync(project, firewallPolicy);
GetAssociationAsync(String, String, CancellationToken)
public virtual Task<FirewallPolicyAssociation> GetAssociationAsync(string project, string firewallPolicy, CancellationToken cancellationToken)
Gets an association with the specified name.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to which the queried association belongs. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<FirewallPolicyAssociation> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
FirewallPolicyAssociation response = await networkFirewallPoliciesClient.GetAssociationAsync(project, firewallPolicy);
GetAsync(GetNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<FirewallPolicy> GetAsync(GetNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Returns the specified network firewall policy.
Parameters | |
---|---|
Name | Description |
request | GetNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<FirewallPolicy> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetNetworkFirewallPolicyRequest request = new GetNetworkFirewallPolicyRequest
{
Project = "",
FirewallPolicy = "",
};
// Make the request
FirewallPolicy response = await networkFirewallPoliciesClient.GetAsync(request);
GetAsync(GetNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<FirewallPolicy> GetAsync(GetNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Returns the specified network firewall policy.
Parameters | |
---|---|
Name | Description |
request | GetNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<FirewallPolicy> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetNetworkFirewallPolicyRequest request = new GetNetworkFirewallPolicyRequest
{
Project = "",
FirewallPolicy = "",
};
// Make the request
FirewallPolicy response = await networkFirewallPoliciesClient.GetAsync(request);
GetAsync(String, String, CallSettings)
public virtual Task<FirewallPolicy> GetAsync(string project, string firewallPolicy, CallSettings callSettings = null)
Returns the specified network firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<FirewallPolicy> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
FirewallPolicy response = await networkFirewallPoliciesClient.GetAsync(project, firewallPolicy);
GetAsync(String, String, CancellationToken)
public virtual Task<FirewallPolicy> GetAsync(string project, string firewallPolicy, CancellationToken cancellationToken)
Returns the specified network firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<FirewallPolicy> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
FirewallPolicy response = await networkFirewallPoliciesClient.GetAsync(project, firewallPolicy);
GetIamPolicy(GetIamPolicyNetworkFirewallPolicyRequest, CallSettings)
public virtual Policy GetIamPolicy(GetIamPolicyNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
GetIamPolicyNetworkFirewallPolicyRequest request = new GetIamPolicyNetworkFirewallPolicyRequest
{
Resource = "",
Project = "",
OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = networkFirewallPoliciesClient.GetIamPolicy(request);
GetIamPolicy(String, String, CallSettings)
public virtual Policy GetIamPolicy(string project, string resource, CallSettings callSettings = null)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
resource | String Name or id of the resource for this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string resource = "";
// Make the request
Policy response = networkFirewallPoliciesClient.GetIamPolicy(project, resource);
GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyNetworkFirewallPolicyRequest request = new GetIamPolicyNetworkFirewallPolicyRequest
{
Resource = "",
Project = "",
OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await networkFirewallPoliciesClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyNetworkFirewallPolicyRequest request = new GetIamPolicyNetworkFirewallPolicyRequest
{
Resource = "",
Project = "",
OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await networkFirewallPoliciesClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(String, String, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(string project, string resource, CallSettings callSettings = null)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
resource | String Name or id of the resource for this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
// Make the request
Policy response = await networkFirewallPoliciesClient.GetIamPolicyAsync(project, resource);
GetIamPolicyAsync(String, String, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(string project, string resource, CancellationToken cancellationToken)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
resource | String Name or id of the resource for this request. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
// Make the request
Policy response = await networkFirewallPoliciesClient.GetIamPolicyAsync(project, resource);
GetRule(GetRuleNetworkFirewallPolicyRequest, CallSettings)
public virtual FirewallPolicyRule GetRule(GetRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Gets a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | GetRuleNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FirewallPolicyRule | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
GetRuleNetworkFirewallPolicyRequest request = new GetRuleNetworkFirewallPolicyRequest
{
Project = "",
Priority = 0,
FirewallPolicy = "",
};
// Make the request
FirewallPolicyRule response = networkFirewallPoliciesClient.GetRule(request);
GetRule(String, String, CallSettings)
public virtual FirewallPolicyRule GetRule(string project, string firewallPolicy, CallSettings callSettings = null)
Gets a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to which the queried rule belongs. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FirewallPolicyRule | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
FirewallPolicyRule response = networkFirewallPoliciesClient.GetRule(project, firewallPolicy);
GetRuleAsync(GetRuleNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<FirewallPolicyRule> GetRuleAsync(GetRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Gets a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | GetRuleNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<FirewallPolicyRule> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetRuleNetworkFirewallPolicyRequest request = new GetRuleNetworkFirewallPolicyRequest
{
Project = "",
Priority = 0,
FirewallPolicy = "",
};
// Make the request
FirewallPolicyRule response = await networkFirewallPoliciesClient.GetRuleAsync(request);
GetRuleAsync(GetRuleNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<FirewallPolicyRule> GetRuleAsync(GetRuleNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Gets a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | GetRuleNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<FirewallPolicyRule> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
GetRuleNetworkFirewallPolicyRequest request = new GetRuleNetworkFirewallPolicyRequest
{
Project = "",
Priority = 0,
FirewallPolicy = "",
};
// Make the request
FirewallPolicyRule response = await networkFirewallPoliciesClient.GetRuleAsync(request);
GetRuleAsync(String, String, CallSettings)
public virtual Task<FirewallPolicyRule> GetRuleAsync(string project, string firewallPolicy, CallSettings callSettings = null)
Gets a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to which the queried rule belongs. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<FirewallPolicyRule> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
FirewallPolicyRule response = await networkFirewallPoliciesClient.GetRuleAsync(project, firewallPolicy);
GetRuleAsync(String, String, CancellationToken)
public virtual Task<FirewallPolicyRule> GetRuleAsync(string project, string firewallPolicy, CancellationToken cancellationToken)
Gets a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to which the queried rule belongs. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<FirewallPolicyRule> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
FirewallPolicyRule response = await networkFirewallPoliciesClient.GetRuleAsync(project, firewallPolicy);
Insert(InsertNetworkFirewallPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> Insert(InsertNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
InsertNetworkFirewallPolicyRequest request = new InsertNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicyResource = new FirewallPolicy(),
};
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.Insert(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Insert(String, FirewallPolicy, CallSettings)
public virtual Operation<Operation, Operation> Insert(string project, FirewallPolicy firewallPolicyResource, CallSettings callSettings = null)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicyResource | FirewallPolicy The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
FirewallPolicy firewallPolicyResource = new FirewallPolicy();
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.Insert(project, firewallPolicyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(InsertNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
InsertNetworkFirewallPolicyRequest request = new InsertNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicyResource = new FirewallPolicy(),
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.InsertAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(InsertNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
InsertNetworkFirewallPolicyRequest request = new InsertNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicyResource = new FirewallPolicy(),
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.InsertAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(String, FirewallPolicy, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, FirewallPolicy firewallPolicyResource, CallSettings callSettings = null)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicyResource | FirewallPolicy The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
FirewallPolicy firewallPolicyResource = new FirewallPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.InsertAsync(project, firewallPolicyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(String, FirewallPolicy, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, FirewallPolicy firewallPolicyResource, CancellationToken cancellationToken)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicyResource | FirewallPolicy The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
FirewallPolicy firewallPolicyResource = new FirewallPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.InsertAsync(project, firewallPolicyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
List(ListNetworkFirewallPoliciesRequest, CallSettings)
public virtual PagedEnumerable<FirewallPolicyList, FirewallPolicy> List(ListNetworkFirewallPoliciesRequest request, CallSettings callSettings = null)
Lists all the policies that have been configured for the specified project.
Parameters | |
---|---|
Name | Description |
request | ListNetworkFirewallPoliciesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<FirewallPolicyList, FirewallPolicy> | A pageable sequence of FirewallPolicy resources. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
ListNetworkFirewallPoliciesRequest request = new ListNetworkFirewallPoliciesRequest
{
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<FirewallPolicyList, FirewallPolicy> response = networkFirewallPoliciesClient.List(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (FirewallPolicy item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FirewallPolicyList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FirewallPolicy item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FirewallPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FirewallPolicy item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
List(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<FirewallPolicyList, FirewallPolicy> List(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all the policies that have been configured for the specified project.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<FirewallPolicyList, FirewallPolicy> | A pageable sequence of FirewallPolicy resources. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
PagedEnumerable<FirewallPolicyList, FirewallPolicy> response = networkFirewallPoliciesClient.List(project);
// Iterate over all response items, lazily performing RPCs as required
foreach (FirewallPolicy item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FirewallPolicyList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FirewallPolicy item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FirewallPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FirewallPolicy item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAsync(ListNetworkFirewallPoliciesRequest, CallSettings)
public virtual PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy> ListAsync(ListNetworkFirewallPoliciesRequest request, CallSettings callSettings = null)
Lists all the policies that have been configured for the specified project.
Parameters | |
---|---|
Name | Description |
request | ListNetworkFirewallPoliciesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy> | A pageable asynchronous sequence of FirewallPolicy resources. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
ListNetworkFirewallPoliciesRequest request = new ListNetworkFirewallPoliciesRequest
{
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy> response = networkFirewallPoliciesClient.ListAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FirewallPolicy item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FirewallPolicyList page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FirewallPolicy item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FirewallPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FirewallPolicy item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy> ListAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all the policies that have been configured for the specified project.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy> | A pageable asynchronous sequence of FirewallPolicy resources. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy> response = networkFirewallPoliciesClient.ListAsync(project);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FirewallPolicy item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FirewallPolicyList page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FirewallPolicy item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FirewallPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FirewallPolicy item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
Patch(PatchNetworkFirewallPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> Patch(PatchNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
request | PatchNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
PatchNetworkFirewallPolicyRequest request = new PatchNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicyResource = new FirewallPolicy(),
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.Patch(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOncePatch(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Patch(String, String, FirewallPolicy, CallSettings)
public virtual Operation<Operation, Operation> Patch(string project, string firewallPolicy, FirewallPolicy firewallPolicyResource, CallSettings callSettings = null)
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
firewallPolicyResource | FirewallPolicy The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
FirewallPolicy firewallPolicyResource = new FirewallPolicy();
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.Patch(project, firewallPolicy, firewallPolicyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOncePatch(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(PatchNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
request | PatchNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
PatchNetworkFirewallPolicyRequest request = new PatchNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicyResource = new FirewallPolicy(),
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(PatchNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
request | PatchNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
PatchNetworkFirewallPolicyRequest request = new PatchNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicyResource = new FirewallPolicy(),
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(String, String, FirewallPolicy, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string firewallPolicy, FirewallPolicy firewallPolicyResource, CallSettings callSettings = null)
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
firewallPolicyResource | FirewallPolicy The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
FirewallPolicy firewallPolicyResource = new FirewallPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchAsync(project, firewallPolicy, firewallPolicyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(String, String, FirewallPolicy, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string firewallPolicy, FirewallPolicy firewallPolicyResource, CancellationToken cancellationToken)
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
firewallPolicyResource | FirewallPolicy The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
FirewallPolicy firewallPolicyResource = new FirewallPolicy();
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchAsync(project, firewallPolicy, firewallPolicyResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchRule(PatchRuleNetworkFirewallPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> PatchRule(PatchRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Patches a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | PatchRuleNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
PatchRuleNetworkFirewallPolicyRequest request = new PatchRuleNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicyRuleResource = new FirewallPolicyRule(),
Priority = 0,
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.PatchRule(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOncePatchRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchRule(String, String, FirewallPolicyRule, CallSettings)
public virtual Operation<Operation, Operation> PatchRule(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CallSettings callSettings = null)
Patches a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
firewallPolicyRuleResource | FirewallPolicyRule The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.PatchRule(project, firewallPolicy, firewallPolicyRuleResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOncePatchRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchRuleAsync(PatchRuleNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchRuleAsync(PatchRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Patches a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | PatchRuleNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
PatchRuleNetworkFirewallPolicyRequest request = new PatchRuleNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicyRuleResource = new FirewallPolicyRule(),
Priority = 0,
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchRuleAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchRuleAsync(PatchRuleNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchRuleAsync(PatchRuleNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Patches a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | PatchRuleNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
PatchRuleNetworkFirewallPolicyRequest request = new PatchRuleNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
FirewallPolicyRuleResource = new FirewallPolicyRule(),
Priority = 0,
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchRuleAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchRuleAsync(String, String, FirewallPolicyRule, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchRuleAsync(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CallSettings callSettings = null)
Patches a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
firewallPolicyRuleResource | FirewallPolicyRule The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchRuleAsync(project, firewallPolicy, firewallPolicyRuleResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchRuleAsync(String, String, FirewallPolicyRule, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchRuleAsync(string project, string firewallPolicy, FirewallPolicyRule firewallPolicyRuleResource, CancellationToken cancellationToken)
Patches a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
firewallPolicyRuleResource | FirewallPolicyRule The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
FirewallPolicyRule firewallPolicyRuleResource = new FirewallPolicyRule();
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.PatchRuleAsync(project, firewallPolicy, firewallPolicyRuleResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOncePatchRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PollOnceAddAssociation(String, CallSettings)
public virtual Operation<Operation, Operation> PollOnceAddAssociation(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of AddAssociation
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceAddAssociationAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceAddAssociationAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
AddAssociation
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOnceAddRule(String, CallSettings)
public virtual Operation<Operation, Operation> PollOnceAddRule(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of AddRule
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceAddRuleAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceAddRuleAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
AddRule
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOnceCloneRules(String, CallSettings)
public virtual Operation<Operation, Operation> PollOnceCloneRules(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CloneRules
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceCloneRulesAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceCloneRulesAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CloneRules
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOnceDelete(String, CallSettings)
public virtual Operation<Operation, Operation> PollOnceDelete(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Delete
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceDeleteAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceDeleteAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Delete
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOnceInsert(String, CallSettings)
public virtual Operation<Operation, Operation> PollOnceInsert(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Insert
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceInsertAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceInsertAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Insert
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOncePatch(String, CallSettings)
public virtual Operation<Operation, Operation> PollOncePatch(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Patch
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOncePatchAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOncePatchAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Patch
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOncePatchRule(String, CallSettings)
public virtual Operation<Operation, Operation> PollOncePatchRule(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of PatchRule
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOncePatchRuleAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOncePatchRuleAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
PatchRule
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOnceRemoveAssociation(String, CallSettings)
public virtual Operation<Operation, Operation> PollOnceRemoveAssociation(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of RemoveAssociation
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceRemoveAssociationAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceRemoveAssociationAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
RemoveAssociation
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOnceRemoveRule(String, CallSettings)
public virtual Operation<Operation, Operation> PollOnceRemoveRule(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of RemoveRule
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceRemoveRuleAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceRemoveRuleAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
RemoveRule
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
RemoveAssociation(RemoveAssociationNetworkFirewallPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> RemoveAssociation(RemoveAssociationNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Removes an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | RemoveAssociationNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
RemoveAssociationNetworkFirewallPolicyRequest request = new RemoveAssociationNetworkFirewallPolicyRequest
{
Name = "",
RequestId = "",
Project = "",
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.RemoveAssociation(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceRemoveAssociation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
RemoveAssociation(String, String, CallSettings)
public virtual Operation<Operation, Operation> RemoveAssociation(string project, string firewallPolicy, CallSettings callSettings = null)
Removes an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.RemoveAssociation(project, firewallPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceRemoveAssociation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
RemoveAssociationAsync(RemoveAssociationNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> RemoveAssociationAsync(RemoveAssociationNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Removes an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | RemoveAssociationNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
RemoveAssociationNetworkFirewallPolicyRequest request = new RemoveAssociationNetworkFirewallPolicyRequest
{
Name = "",
RequestId = "",
Project = "",
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveAssociationAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveAssociationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
RemoveAssociationAsync(RemoveAssociationNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> RemoveAssociationAsync(RemoveAssociationNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Removes an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | RemoveAssociationNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
RemoveAssociationNetworkFirewallPolicyRequest request = new RemoveAssociationNetworkFirewallPolicyRequest
{
Name = "",
RequestId = "",
Project = "",
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveAssociationAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveAssociationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
RemoveAssociationAsync(String, String, CallSettings)
public virtual Task<Operation<Operation, Operation>> RemoveAssociationAsync(string project, string firewallPolicy, CallSettings callSettings = null)
Removes an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveAssociationAsync(project, firewallPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveAssociationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
RemoveAssociationAsync(String, String, CancellationToken)
public virtual Task<Operation<Operation, Operation>> RemoveAssociationAsync(string project, string firewallPolicy, CancellationToken cancellationToken)
Removes an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveAssociationAsync(project, firewallPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveAssociationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
RemoveRule(RemoveRuleNetworkFirewallPolicyRequest, CallSettings)
public virtual Operation<Operation, Operation> RemoveRule(RemoveRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Deletes a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | RemoveRuleNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
RemoveRuleNetworkFirewallPolicyRequest request = new RemoveRuleNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
Priority = 0,
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.RemoveRule(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceRemoveRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
RemoveRule(String, String, CallSettings)
public virtual Operation<Operation, Operation> RemoveRule(string project, string firewallPolicy, CallSettings callSettings = null)
Deletes a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = networkFirewallPoliciesClient.RemoveRule(project, firewallPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = networkFirewallPoliciesClient.PollOnceRemoveRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
RemoveRuleAsync(RemoveRuleNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> RemoveRuleAsync(RemoveRuleNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Deletes a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | RemoveRuleNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
RemoveRuleNetworkFirewallPolicyRequest request = new RemoveRuleNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
Priority = 0,
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveRuleAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
RemoveRuleAsync(RemoveRuleNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> RemoveRuleAsync(RemoveRuleNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Deletes a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | RemoveRuleNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
RemoveRuleNetworkFirewallPolicyRequest request = new RemoveRuleNetworkFirewallPolicyRequest
{
RequestId = "",
Project = "",
Priority = 0,
FirewallPolicy = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveRuleAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
RemoveRuleAsync(String, String, CallSettings)
public virtual Task<Operation<Operation, Operation>> RemoveRuleAsync(string project, string firewallPolicy, CallSettings callSettings = null)
Deletes a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveRuleAsync(project, firewallPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
RemoveRuleAsync(String, String, CancellationToken)
public virtual Task<Operation<Operation, Operation>> RemoveRuleAsync(string project, string firewallPolicy, CancellationToken cancellationToken)
Deletes a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
firewallPolicy | String Name of the firewall policy to update. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string firewallPolicy = "";
// Make the request
lro::Operation<Operation, Operation> response = await networkFirewallPoliciesClient.RemoveRuleAsync(project, firewallPolicy);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await networkFirewallPoliciesClient.PollOnceRemoveRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
SetIamPolicy(SetIamPolicyNetworkFirewallPolicyRequest, CallSettings)
public virtual Policy SetIamPolicy(SetIamPolicyNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
SetIamPolicyNetworkFirewallPolicyRequest request = new SetIamPolicyNetworkFirewallPolicyRequest
{
Resource = "",
Project = "",
GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
};
// Make the request
Policy response = networkFirewallPoliciesClient.SetIamPolicy(request);
SetIamPolicy(String, String, GlobalSetPolicyRequest, CallSettings)
public virtual Policy SetIamPolicy(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
resource | String Name or id of the resource for this request. |
globalSetPolicyRequestResource | GlobalSetPolicyRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string resource = "";
GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
// Make the request
Policy response = networkFirewallPoliciesClient.SetIamPolicy(project, resource, globalSetPolicyRequestResource);
SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyNetworkFirewallPolicyRequest request = new SetIamPolicyNetworkFirewallPolicyRequest
{
Resource = "",
Project = "",
GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
};
// Make the request
Policy response = await networkFirewallPoliciesClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyNetworkFirewallPolicyRequest request = new SetIamPolicyNetworkFirewallPolicyRequest
{
Resource = "",
Project = "",
GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
};
// Make the request
Policy response = await networkFirewallPoliciesClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(String, String, GlobalSetPolicyRequest, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
resource | String Name or id of the resource for this request. |
globalSetPolicyRequestResource | GlobalSetPolicyRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
// Make the request
Policy response = await networkFirewallPoliciesClient.SetIamPolicyAsync(project, resource, globalSetPolicyRequestResource);
SetIamPolicyAsync(String, String, GlobalSetPolicyRequest, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, CancellationToken cancellationToken)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
resource | String Name or id of the resource for this request. |
globalSetPolicyRequestResource | GlobalSetPolicyRequest The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
// Make the request
Policy response = await networkFirewallPoliciesClient.SetIamPolicyAsync(project, resource, globalSetPolicyRequestResource);
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
TestIamPermissions(TestIamPermissionsNetworkFirewallPolicyRequest, CallSettings)
public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
TestIamPermissionsNetworkFirewallPolicyRequest request = new TestIamPermissionsNetworkFirewallPolicyRequest
{
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = networkFirewallPoliciesClient.TestIamPermissions(request);
TestIamPermissions(String, String, TestPermissionsRequest, CallSettings)
public virtual TestPermissionsResponse TestIamPermissions(string project, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
resource | String Name or id of the resource for this request. |
testPermissionsRequestResource | TestPermissionsRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse | The RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = NetworkFirewallPoliciesClient.Create();
// Initialize request argument(s)
string project = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = networkFirewallPoliciesClient.TestIamPermissions(project, resource, testPermissionsRequestResource);
TestIamPermissionsAsync(TestIamPermissionsNetworkFirewallPolicyRequest, CallSettings)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsNetworkFirewallPolicyRequest request, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TestPermissionsResponse> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsNetworkFirewallPolicyRequest request = new TestIamPermissionsNetworkFirewallPolicyRequest
{
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await networkFirewallPoliciesClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(TestIamPermissionsNetworkFirewallPolicyRequest, CancellationToken)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsNetworkFirewallPolicyRequest request, CancellationToken cancellationToken)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsNetworkFirewallPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<TestPermissionsResponse> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsNetworkFirewallPolicyRequest request = new TestIamPermissionsNetworkFirewallPolicyRequest
{
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await networkFirewallPoliciesClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(String, String, TestPermissionsRequest, CallSettings)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
resource | String Name or id of the resource for this request. |
testPermissionsRequestResource | TestPermissionsRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TestPermissionsResponse> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await networkFirewallPoliciesClient.TestIamPermissionsAsync(project, resource, testPermissionsRequestResource);
TestIamPermissionsAsync(String, String, TestPermissionsRequest, CancellationToken)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string resource, TestPermissionsRequest testPermissionsRequestResource, CancellationToken cancellationToken)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
resource | String Name or id of the resource for this request. |
testPermissionsRequestResource | TestPermissionsRequest The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<TestPermissionsResponse> | A Task containing the RPC response. |
// Create client
NetworkFirewallPoliciesClient networkFirewallPoliciesClient = await NetworkFirewallPoliciesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await networkFirewallPoliciesClient.TestIamPermissionsAsync(project, resource, testPermissionsRequestResource);