public sealed class NetworkFirewallPoliciesClientImpl : NetworkFirewallPoliciesClient
Reference documentation and code samples for the Compute Engine v1 API class NetworkFirewallPoliciesClientImpl.
NetworkFirewallPolicies client wrapper implementation, for convenient use.
Namespace
GoogleCloudGoogle.Cloud.ComputeV1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The NetworkFirewallPolicies API.
Constructors
NetworkFirewallPoliciesClientImpl(NetworkFirewallPoliciesClient, NetworkFirewallPoliciesSettings, ILogger)
public NetworkFirewallPoliciesClientImpl(NetworkFirewallPolicies.NetworkFirewallPoliciesClient grpcClient, NetworkFirewallPoliciesSettings settings, ILogger logger)
Constructs a client wrapper for the NetworkFirewallPolicies service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | NetworkFirewallPoliciesNetworkFirewallPoliciesClient The underlying gRPC client. |
settings | NetworkFirewallPoliciesSettings The base NetworkFirewallPoliciesSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
AddAssociationOperationsClient
public override OperationsClient AddAssociationOperationsClient { get; }
The long-running operations client for AddAssociation
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
AddRuleOperationsClient
public override OperationsClient AddRuleOperationsClient { get; }
The long-running operations client for AddRule
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CloneRulesOperationsClient
public override OperationsClient CloneRulesOperationsClient { get; }
The long-running operations client for CloneRules
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteOperationsClient
public override OperationsClient DeleteOperationsClient { get; }
The long-running operations client for Delete
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override NetworkFirewallPolicies.NetworkFirewallPoliciesClient GrpcClient { get; }
The underlying gRPC NetworkFirewallPolicies client
Property Value | |
---|---|
Type | Description |
NetworkFirewallPoliciesNetworkFirewallPoliciesClient |
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchOperationsClient
public override OperationsClient PatchOperationsClient { get; }
The long-running operations client for Patch
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchRuleOperationsClient
public override OperationsClient PatchRuleOperationsClient { get; }
The long-running operations client for PatchRule
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
RemoveAssociationOperationsClient
public override OperationsClient RemoveAssociationOperationsClient { get; }
The long-running operations client for RemoveAssociation
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
RemoveRuleOperationsClient
public override OperationsClient RemoveRuleOperationsClient { get; }
The long-running operations client for RemoveRule
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
AddAssociation(AddAssociationNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
OperationOperationOperation | The RPC response. |
AddAssociationAsync(AddAssociationNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
AddRule(AddRuleNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
OperationOperationOperation | The RPC response. |
AddRuleAsync(AddRuleNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
CloneRules(CloneRulesNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
OperationOperationOperation | The RPC response. |
CloneRulesAsync(CloneRulesNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
Delete(DeleteNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
OperationOperationOperation | The RPC response. |
DeleteAsync(DeleteNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
Get(GetNetworkFirewallPolicyRequest, CallSettings)
public override 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. |
GetAssociation(GetAssociationNetworkFirewallPolicyRequest, CallSettings)
public override 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. |
GetAssociationAsync(GetAssociationNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskFirewallPolicyAssociation | A Task containing the RPC response. |
GetAsync(GetNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskFirewallPolicy | A Task containing the RPC response. |
GetIamPolicy(GetIamPolicyNetworkFirewallPolicyRequest, CallSettings)
public override 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. |
GetIamPolicyAsync(GetIamPolicyNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskPolicy | A Task containing the RPC response. |
GetRule(GetRuleNetworkFirewallPolicyRequest, CallSettings)
public override 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. |
GetRuleAsync(GetRuleNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskFirewallPolicyRule | A Task containing the RPC response. |
Insert(InsertNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
OperationOperationOperation | The RPC response. |
InsertAsync(InsertNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
List(ListNetworkFirewallPoliciesRequest, CallSettings)
public override 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 |
PagedEnumerableFirewallPolicyListFirewallPolicy | A pageable sequence of FirewallPolicy resources. |
ListAsync(ListNetworkFirewallPoliciesRequest, CallSettings)
public override 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 |
PagedAsyncEnumerableFirewallPolicyListFirewallPolicy | A pageable asynchronous sequence of FirewallPolicy resources. |
Patch(PatchNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
OperationOperationOperation | The RPC response. |
PatchAsync(PatchNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
PatchRule(PatchRuleNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
OperationOperationOperation | The RPC response. |
PatchRuleAsync(PatchRuleNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
RemoveAssociation(RemoveAssociationNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
OperationOperationOperation | The RPC response. |
RemoveAssociationAsync(RemoveAssociationNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
RemoveRule(RemoveRuleNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
OperationOperationOperation | The RPC response. |
RemoveRuleAsync(RemoveRuleNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
SetIamPolicy(SetIamPolicyNetworkFirewallPolicyRequest, CallSettings)
public override 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. |
SetIamPolicyAsync(SetIamPolicyNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskPolicy | A Task containing the RPC response. |
TestIamPermissions(TestIamPermissionsNetworkFirewallPolicyRequest, CallSettings)
public override 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. |
TestIamPermissionsAsync(TestIamPermissionsNetworkFirewallPolicyRequest, CallSettings)
public override 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 |
TaskTestPermissionsResponse | A Task containing the RPC response. |