public sealed class RegionSecurityPoliciesClientImpl : RegionSecurityPoliciesClient
Reference documentation and code samples for the Compute Engine v1 API class RegionSecurityPoliciesClientImpl.
RegionSecurityPolicies client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The RegionSecurityPolicies API.
Constructors
RegionSecurityPoliciesClientImpl(RegionSecurityPoliciesClient, RegionSecurityPoliciesSettings, ILogger)
public RegionSecurityPoliciesClientImpl(RegionSecurityPolicies.RegionSecurityPoliciesClient grpcClient, RegionSecurityPoliciesSettings settings, ILogger logger)
Constructs a client wrapper for the RegionSecurityPolicies service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | RegionSecurityPoliciesRegionSecurityPoliciesClient The underlying gRPC client. |
settings | RegionSecurityPoliciesSettings The base RegionSecurityPoliciesSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
AddRuleOperationsClient
public override OperationsClient AddRuleOperationsClient { get; }
The long-running operations client for AddRule
.
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 RegionSecurityPolicies.RegionSecurityPoliciesClient GrpcClient { get; }
The underlying gRPC RegionSecurityPolicies client
Property Value | |
---|---|
Type | Description |
RegionSecurityPoliciesRegionSecurityPoliciesClient |
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 |
RemoveRuleOperationsClient
public override OperationsClient RemoveRuleOperationsClient { get; }
The long-running operations client for RemoveRule
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
AddRule(AddRuleRegionSecurityPolicyRequest, CallSettings)
public override Operation<Operation, Operation> AddRule(AddRuleRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Inserts a rule into a security policy.
Parameters | |
---|---|
Name | Description |
request | AddRuleRegionSecurityPolicyRequest 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(AddRuleRegionSecurityPolicyRequest, CallSettings)
public override Task<Operation<Operation, Operation>> AddRuleAsync(AddRuleRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Inserts a rule into a security policy.
Parameters | |
---|---|
Name | Description |
request | AddRuleRegionSecurityPolicyRequest 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(DeleteRegionSecurityPolicyRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteRegionSecurityPolicyRequest 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(DeleteRegionSecurityPolicyRequest, CallSettings)
public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteRegionSecurityPolicyRequest 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(GetRegionSecurityPolicyRequest, CallSettings)
public override SecurityPolicy Get(GetRegionSecurityPolicyRequest request, CallSettings callSettings = null)
List all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
request | GetRegionSecurityPolicyRequest 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 |
SecurityPolicy | The RPC response. |
GetAsync(GetRegionSecurityPolicyRequest, CallSettings)
public override Task<SecurityPolicy> GetAsync(GetRegionSecurityPolicyRequest request, CallSettings callSettings = null)
List all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
request | GetRegionSecurityPolicyRequest 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 |
TaskSecurityPolicy | A Task containing the RPC response. |
GetRule(GetRuleRegionSecurityPolicyRequest, CallSettings)
public override SecurityPolicyRule GetRule(GetRuleRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Gets a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | GetRuleRegionSecurityPolicyRequest 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 |
SecurityPolicyRule | The RPC response. |
GetRuleAsync(GetRuleRegionSecurityPolicyRequest, CallSettings)
public override Task<SecurityPolicyRule> GetRuleAsync(GetRuleRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Gets a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | GetRuleRegionSecurityPolicyRequest 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 |
TaskSecurityPolicyRule | A Task containing the RPC response. |
Insert(InsertRegionSecurityPolicyRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertRegionSecurityPolicyRequest 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(InsertRegionSecurityPolicyRequest, CallSettings)
public override Task<Operation<Operation, Operation>> InsertAsync(InsertRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertRegionSecurityPolicyRequest 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(ListRegionSecurityPoliciesRequest, CallSettings)
public override PagedEnumerable<SecurityPolicyList, SecurityPolicy> List(ListRegionSecurityPoliciesRequest request, CallSettings callSettings = null)
List all the policies that have been configured for the specified project and region.
Parameters | |
---|---|
Name | Description |
request | ListRegionSecurityPoliciesRequest 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 |
PagedEnumerableSecurityPolicyListSecurityPolicy | A pageable sequence of SecurityPolicy resources. |
ListAsync(ListRegionSecurityPoliciesRequest, CallSettings)
public override PagedAsyncEnumerable<SecurityPolicyList, SecurityPolicy> ListAsync(ListRegionSecurityPoliciesRequest request, CallSettings callSettings = null)
List all the policies that have been configured for the specified project and region.
Parameters | |
---|---|
Name | Description |
request | ListRegionSecurityPoliciesRequest 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 |
PagedAsyncEnumerableSecurityPolicyListSecurityPolicy | A pageable asynchronous sequence of SecurityPolicy resources. |
Patch(PatchRegionSecurityPolicyRequest, CallSettings)
public override Operation<Operation, Operation> Patch(PatchRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
Parameters | |
---|---|
Name | Description |
request | PatchRegionSecurityPolicyRequest 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(PatchRegionSecurityPolicyRequest, CallSettings)
public override Task<Operation<Operation, Operation>> PatchAsync(PatchRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
Parameters | |
---|---|
Name | Description |
request | PatchRegionSecurityPolicyRequest 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(PatchRuleRegionSecurityPolicyRequest, CallSettings)
public override Operation<Operation, Operation> PatchRule(PatchRuleRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
Parameters | |
---|---|
Name | Description |
request | PatchRuleRegionSecurityPolicyRequest 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(PatchRuleRegionSecurityPolicyRequest, CallSettings)
public override Task<Operation<Operation, Operation>> PatchRuleAsync(PatchRuleRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
Parameters | |
---|---|
Name | Description |
request | PatchRuleRegionSecurityPolicyRequest 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(RemoveRuleRegionSecurityPolicyRequest, CallSettings)
public override Operation<Operation, Operation> RemoveRule(RemoveRuleRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Deletes a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | RemoveRuleRegionSecurityPolicyRequest 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(RemoveRuleRegionSecurityPolicyRequest, CallSettings)
public override Task<Operation<Operation, Operation>> RemoveRuleAsync(RemoveRuleRegionSecurityPolicyRequest request, CallSettings callSettings = null)
Deletes a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | RemoveRuleRegionSecurityPolicyRequest 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. |