public sealed class FirewallPoliciesClientImpl : FirewallPoliciesClient
Reference documentation and code samples for the Compute Engine v1 API class FirewallPoliciesClientImpl.
FirewallPolicies client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The FirewallPolicies API.
Constructors
FirewallPoliciesClientImpl(FirewallPolicies.FirewallPoliciesClient, FirewallPoliciesSettings, ILogger)
public FirewallPoliciesClientImpl(FirewallPolicies.FirewallPoliciesClient grpcClient, FirewallPoliciesSettings settings, ILogger logger)
Constructs a client wrapper for the FirewallPolicies service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | FirewallPolicies.FirewallPoliciesClient The underlying gRPC client. |
settings | FirewallPoliciesSettings The base FirewallPoliciesSettings 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 FirewallPolicies.FirewallPoliciesClient GrpcClient { get; }
The underlying gRPC FirewallPolicies client
Property Value | |
---|---|
Type | Description |
FirewallPolicies.FirewallPoliciesClient |
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
MoveOperationsClient
public override OperationsClient MoveOperationsClient { get; }
The long-running operations client for Move
.
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(AddAssociationFirewallPolicyRequest, CallSettings)
public override Operation<Operation, Operation> AddAssociation(AddAssociationFirewallPolicyRequest request, CallSettings callSettings = null)
Inserts an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | AddAssociationFirewallPolicyRequest 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. |
AddAssociationAsync(AddAssociationFirewallPolicyRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> AddAssociationAsync(AddAssociationFirewallPolicyRequest request, CallSettings callSettings = null)
Inserts an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | AddAssociationFirewallPolicyRequest 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. |
AddRule(AddRuleFirewallPolicyRequest, CallSettings)
public override Operation<Operation, Operation> AddRule(AddRuleFirewallPolicyRequest request, CallSettings callSettings = null)
Inserts a rule into a firewall policy.
Parameters | |
---|---|
Name | Description |
request | AddRuleFirewallPolicyRequest 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. |
AddRuleAsync(AddRuleFirewallPolicyRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> AddRuleAsync(AddRuleFirewallPolicyRequest request, CallSettings callSettings = null)
Inserts a rule into a firewall policy.
Parameters | |
---|---|
Name | Description |
request | AddRuleFirewallPolicyRequest 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. |
CloneRules(CloneRulesFirewallPolicyRequest, CallSettings)
public override Operation<Operation, Operation> CloneRules(CloneRulesFirewallPolicyRequest request, CallSettings callSettings = null)
Copies rules to the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | CloneRulesFirewallPolicyRequest 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. |
CloneRulesAsync(CloneRulesFirewallPolicyRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> CloneRulesAsync(CloneRulesFirewallPolicyRequest request, CallSettings callSettings = null)
Copies rules to the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | CloneRulesFirewallPolicyRequest 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. |
Delete(DeleteFirewallPolicyRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteFirewallPolicyRequest request, CallSettings callSettings = null)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteFirewallPolicyRequest 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. |
DeleteAsync(DeleteFirewallPolicyRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> DeleteAsync(DeleteFirewallPolicyRequest request, CallSettings callSettings = null)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteFirewallPolicyRequest 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. |
Get(GetFirewallPolicyRequest, CallSettings)
public override FirewallPolicy Get(GetFirewallPolicyRequest request, CallSettings callSettings = null)
Returns the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | GetFirewallPolicyRequest 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(GetAssociationFirewallPolicyRequest, CallSettings)
public override FirewallPolicyAssociation GetAssociation(GetAssociationFirewallPolicyRequest request, CallSettings callSettings = null)
Gets an association with the specified name.
Parameters | |
---|---|
Name | Description |
request | GetAssociationFirewallPolicyRequest 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(GetAssociationFirewallPolicyRequest, CallSettings)
public override Task<FirewallPolicyAssociation> GetAssociationAsync(GetAssociationFirewallPolicyRequest request, CallSettings callSettings = null)
Gets an association with the specified name.
Parameters | |
---|---|
Name | Description |
request | GetAssociationFirewallPolicyRequest 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. |
GetAsync(GetFirewallPolicyRequest, CallSettings)
public override Task<FirewallPolicy> GetAsync(GetFirewallPolicyRequest request, CallSettings callSettings = null)
Returns the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | GetFirewallPolicyRequest 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. |
GetIamPolicy(GetIamPolicyFirewallPolicyRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyFirewallPolicyRequest 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 | GetIamPolicyFirewallPolicyRequest 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(GetIamPolicyFirewallPolicyRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyFirewallPolicyRequest 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 | GetIamPolicyFirewallPolicyRequest 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. |
GetRule(GetRuleFirewallPolicyRequest, CallSettings)
public override FirewallPolicyRule GetRule(GetRuleFirewallPolicyRequest request, CallSettings callSettings = null)
Gets a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | GetRuleFirewallPolicyRequest 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(GetRuleFirewallPolicyRequest, CallSettings)
public override Task<FirewallPolicyRule> GetRuleAsync(GetRuleFirewallPolicyRequest request, CallSettings callSettings = null)
Gets a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | GetRuleFirewallPolicyRequest 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. |
Insert(InsertFirewallPolicyRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertFirewallPolicyRequest request, CallSettings callSettings = null)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertFirewallPolicyRequest 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. |
InsertAsync(InsertFirewallPolicyRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> InsertAsync(InsertFirewallPolicyRequest request, CallSettings callSettings = null)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertFirewallPolicyRequest 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. |
List(ListFirewallPoliciesRequest, CallSettings)
public override PagedEnumerable<FirewallPolicyList, FirewallPolicy> List(ListFirewallPoliciesRequest request, CallSettings callSettings = null)
Lists all the policies that have been configured for the specified folder or organization.
Parameters | |
---|---|
Name | Description |
request | ListFirewallPoliciesRequest 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. |
ListAssociations(ListAssociationsFirewallPolicyRequest, CallSettings)
public override FirewallPoliciesListAssociationsResponse ListAssociations(ListAssociationsFirewallPolicyRequest request, CallSettings callSettings = null)
Lists associations of a specified target, i.e., organization or folder.
Parameters | |
---|---|
Name | Description |
request | ListAssociationsFirewallPolicyRequest 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 |
FirewallPoliciesListAssociationsResponse | The RPC response. |
ListAssociationsAsync(ListAssociationsFirewallPolicyRequest, CallSettings)
public override Task<FirewallPoliciesListAssociationsResponse> ListAssociationsAsync(ListAssociationsFirewallPolicyRequest request, CallSettings callSettings = null)
Lists associations of a specified target, i.e., organization or folder.
Parameters | |
---|---|
Name | Description |
request | ListAssociationsFirewallPolicyRequest 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<FirewallPoliciesListAssociationsResponse> | A Task containing the RPC response. |
ListAsync(ListFirewallPoliciesRequest, CallSettings)
public override PagedAsyncEnumerable<FirewallPolicyList, FirewallPolicy> ListAsync(ListFirewallPoliciesRequest request, CallSettings callSettings = null)
Lists all the policies that have been configured for the specified folder or organization.
Parameters | |
---|---|
Name | Description |
request | ListFirewallPoliciesRequest 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. |
Move(MoveFirewallPolicyRequest, CallSettings)
public override Operation<Operation, Operation> Move(MoveFirewallPolicyRequest request, CallSettings callSettings = null)
Moves the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | MoveFirewallPolicyRequest 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. |
MoveAsync(MoveFirewallPolicyRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> MoveAsync(MoveFirewallPolicyRequest request, CallSettings callSettings = null)
Moves the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | MoveFirewallPolicyRequest 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. |
Patch(PatchFirewallPolicyRequest, CallSettings)
public override Operation<Operation, Operation> Patch(PatchFirewallPolicyRequest request, CallSettings callSettings = null)
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
request | PatchFirewallPolicyRequest 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. |
PatchAsync(PatchFirewallPolicyRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> PatchAsync(PatchFirewallPolicyRequest request, CallSettings callSettings = null)
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
request | PatchFirewallPolicyRequest 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. |
PatchRule(PatchRuleFirewallPolicyRequest, CallSettings)
public override Operation<Operation, Operation> PatchRule(PatchRuleFirewallPolicyRequest request, CallSettings callSettings = null)
Patches a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | PatchRuleFirewallPolicyRequest 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. |
PatchRuleAsync(PatchRuleFirewallPolicyRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> PatchRuleAsync(PatchRuleFirewallPolicyRequest request, CallSettings callSettings = null)
Patches a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | PatchRuleFirewallPolicyRequest 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. |
RemoveAssociation(RemoveAssociationFirewallPolicyRequest, CallSettings)
public override Operation<Operation, Operation> RemoveAssociation(RemoveAssociationFirewallPolicyRequest request, CallSettings callSettings = null)
Removes an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | RemoveAssociationFirewallPolicyRequest 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. |
RemoveAssociationAsync(RemoveAssociationFirewallPolicyRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> RemoveAssociationAsync(RemoveAssociationFirewallPolicyRequest request, CallSettings callSettings = null)
Removes an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request | RemoveAssociationFirewallPolicyRequest 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. |
RemoveRule(RemoveRuleFirewallPolicyRequest, CallSettings)
public override Operation<Operation, Operation> RemoveRule(RemoveRuleFirewallPolicyRequest request, CallSettings callSettings = null)
Deletes a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | RemoveRuleFirewallPolicyRequest 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. |
RemoveRuleAsync(RemoveRuleFirewallPolicyRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> RemoveRuleAsync(RemoveRuleFirewallPolicyRequest request, CallSettings callSettings = null)
Deletes a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request | RemoveRuleFirewallPolicyRequest 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. |
SetIamPolicy(SetIamPolicyFirewallPolicyRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyFirewallPolicyRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyFirewallPolicyRequest 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(SetIamPolicyFirewallPolicyRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyFirewallPolicyRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyFirewallPolicyRequest 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. |
TestIamPermissions(TestIamPermissionsFirewallPolicyRequest, CallSettings)
public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsFirewallPolicyRequest request, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsFirewallPolicyRequest 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(TestIamPermissionsFirewallPolicyRequest, CallSettings)
public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsFirewallPolicyRequest request, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsFirewallPolicyRequest 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. |