public class SecurityPoliciesClient : ClientBase<SecurityPolicies.SecurityPoliciesClient>
Client for SecurityPolicies
Inheritance
Object > ClientBase > ClientBase<SecurityPolicies.SecurityPoliciesClient> > SecurityPolicies.SecurityPoliciesClientNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
SecurityPoliciesClient()
protected SecurityPoliciesClient()
Protected parameterless constructor to allow creation of test doubles.
SecurityPoliciesClient(CallInvoker)
public SecurityPoliciesClient(CallInvoker callInvoker)
Creates a new client for SecurityPolicies that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
SecurityPoliciesClient(ChannelBase)
public SecurityPoliciesClient(ChannelBase channel)
Creates a new client for SecurityPolicies
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
SecurityPoliciesClient(ClientBase.ClientBaseConfiguration)
protected SecurityPoliciesClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
AddRule(AddRuleSecurityPolicyRequest, CallOptions)
public virtual Operation AddRule(AddRuleSecurityPolicyRequest request, CallOptions options)
Inserts a rule into a security policy.
Parameters | |
---|---|
Name | Description |
request | AddRuleSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
AddRule(AddRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation AddRule(AddRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Inserts a rule into a security policy.
Parameters | |
---|---|
Name | Description |
request | AddRuleSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
AddRuleAsync(AddRuleSecurityPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> AddRuleAsync(AddRuleSecurityPolicyRequest request, CallOptions options)
Inserts a rule into a security policy.
Parameters | |
---|---|
Name | Description |
request | AddRuleSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
AddRuleAsync(AddRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> AddRuleAsync(AddRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Inserts a rule into a security policy.
Parameters | |
---|---|
Name | Description |
request | AddRuleSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
AggregatedList(AggregatedListSecurityPoliciesRequest, CallOptions)
public virtual SecurityPoliciesAggregatedList AggregatedList(AggregatedListSecurityPoliciesRequest request, CallOptions options)
Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project.
Parameters | |
---|---|
Name | Description |
request | AggregatedListSecurityPoliciesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
SecurityPoliciesAggregatedList | The response received from the server. |
AggregatedList(AggregatedListSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual SecurityPoliciesAggregatedList AggregatedList(AggregatedListSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project.
Parameters | |
---|---|
Name | Description |
request | AggregatedListSecurityPoliciesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
SecurityPoliciesAggregatedList | The response received from the server. |
AggregatedListAsync(AggregatedListSecurityPoliciesRequest, CallOptions)
public virtual AsyncUnaryCall<SecurityPoliciesAggregatedList> AggregatedListAsync(AggregatedListSecurityPoliciesRequest request, CallOptions options)
Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project.
Parameters | |
---|---|
Name | Description |
request | AggregatedListSecurityPoliciesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPoliciesAggregatedList> | The call object. |
AggregatedListAsync(AggregatedListSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<SecurityPoliciesAggregatedList> AggregatedListAsync(AggregatedListSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project.
Parameters | |
---|---|
Name | Description |
request | AggregatedListSecurityPoliciesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPoliciesAggregatedList> | The call object. |
CreateOperationsClientForGlobalOperations()
public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()
Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to GlobalOperations.
Returns | |
---|---|
Type | Description |
Operations.OperationsClient | A new Operations client for the same target as this client. |
Delete(DeleteSecurityPolicyRequest, CallOptions)
public virtual Operation Delete(DeleteSecurityPolicyRequest request, CallOptions options)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
Delete(DeleteSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation Delete(DeleteSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
DeleteAsync(DeleteSecurityPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteSecurityPolicyRequest request, CallOptions options)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
DeleteAsync(DeleteSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
Get(GetSecurityPolicyRequest, CallOptions)
public virtual SecurityPolicy Get(GetSecurityPolicyRequest request, CallOptions options)
List all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
request | GetSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
SecurityPolicy | The response received from the server. |
Get(GetSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual SecurityPolicy Get(GetSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
List all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
request | GetSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
SecurityPolicy | The response received from the server. |
GetAsync(GetSecurityPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<SecurityPolicy> GetAsync(GetSecurityPolicyRequest request, CallOptions options)
List all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
request | GetSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPolicy> | The call object. |
GetAsync(GetSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<SecurityPolicy> GetAsync(GetSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
List all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
request | GetSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPolicy> | The call object. |
GetRule(GetRuleSecurityPolicyRequest, CallOptions)
public virtual SecurityPolicyRule GetRule(GetRuleSecurityPolicyRequest request, CallOptions options)
Gets a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | GetRuleSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
SecurityPolicyRule | The response received from the server. |
GetRule(GetRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual SecurityPolicyRule GetRule(GetRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Gets a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | GetRuleSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
SecurityPolicyRule | The response received from the server. |
GetRuleAsync(GetRuleSecurityPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<SecurityPolicyRule> GetRuleAsync(GetRuleSecurityPolicyRequest request, CallOptions options)
Gets a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | GetRuleSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPolicyRule> | The call object. |
GetRuleAsync(GetRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<SecurityPolicyRule> GetRuleAsync(GetRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Gets a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | GetRuleSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPolicyRule> | The call object. |
Insert(InsertSecurityPolicyRequest, CallOptions)
public virtual Operation Insert(InsertSecurityPolicyRequest request, CallOptions options)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
Insert(InsertSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation Insert(InsertSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
InsertAsync(InsertSecurityPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertSecurityPolicyRequest request, CallOptions options)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
InsertAsync(InsertSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
List(ListSecurityPoliciesRequest, CallOptions)
public virtual SecurityPolicyList List(ListSecurityPoliciesRequest request, CallOptions options)
List all the policies that have been configured for the specified project.
Parameters | |
---|---|
Name | Description |
request | ListSecurityPoliciesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
SecurityPolicyList | The response received from the server. |
List(ListSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual SecurityPolicyList List(ListSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
List all the policies that have been configured for the specified project.
Parameters | |
---|---|
Name | Description |
request | ListSecurityPoliciesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
SecurityPolicyList | The response received from the server. |
ListAsync(ListSecurityPoliciesRequest, CallOptions)
public virtual AsyncUnaryCall<SecurityPolicyList> ListAsync(ListSecurityPoliciesRequest request, CallOptions options)
List all the policies that have been configured for the specified project.
Parameters | |
---|---|
Name | Description |
request | ListSecurityPoliciesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPolicyList> | The call object. |
ListAsync(ListSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<SecurityPolicyList> ListAsync(ListSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
List all the policies that have been configured for the specified project.
Parameters | |
---|---|
Name | Description |
request | ListSecurityPoliciesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPolicyList> | The call object. |
ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsSecurityPoliciesRequest, CallOptions)
public virtual SecurityPoliciesListPreconfiguredExpressionSetsResponse ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsSecurityPoliciesRequest request, CallOptions options)
Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
Parameters | |
---|---|
Name | Description |
request | ListPreconfiguredExpressionSetsSecurityPoliciesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
SecurityPoliciesListPreconfiguredExpressionSetsResponse | The response received from the server. |
ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual SecurityPoliciesListPreconfiguredExpressionSetsResponse ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
Parameters | |
---|---|
Name | Description |
request | ListPreconfiguredExpressionSetsSecurityPoliciesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
SecurityPoliciesListPreconfiguredExpressionSetsResponse | The response received from the server. |
ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsSecurityPoliciesRequest, CallOptions)
public virtual AsyncUnaryCall<SecurityPoliciesListPreconfiguredExpressionSetsResponse> ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsSecurityPoliciesRequest request, CallOptions options)
Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
Parameters | |
---|---|
Name | Description |
request | ListPreconfiguredExpressionSetsSecurityPoliciesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPoliciesListPreconfiguredExpressionSetsResponse> | The call object. |
ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<SecurityPoliciesListPreconfiguredExpressionSetsResponse> ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
Parameters | |
---|---|
Name | Description |
request | ListPreconfiguredExpressionSetsSecurityPoliciesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPoliciesListPreconfiguredExpressionSetsResponse> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override SecurityPolicies.SecurityPoliciesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
SecurityPolicies.SecurityPoliciesClient |
Patch(PatchSecurityPolicyRequest, CallOptions)
public virtual Operation Patch(PatchSecurityPolicyRequest request, CallOptions options)
Patches the specified policy with the data included in the request. 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 | PatchSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
Patch(PatchSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation Patch(PatchSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Patches the specified policy with the data included in the request. 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 | PatchSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
PatchAsync(PatchSecurityPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> PatchAsync(PatchSecurityPolicyRequest request, CallOptions options)
Patches the specified policy with the data included in the request. 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 | PatchSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
PatchAsync(PatchSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> PatchAsync(PatchSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Patches the specified policy with the data included in the request. 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 | PatchSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
PatchRule(PatchRuleSecurityPolicyRequest, CallOptions)
public virtual Operation PatchRule(PatchRuleSecurityPolicyRequest request, CallOptions options)
Patches a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | PatchRuleSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
PatchRule(PatchRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation PatchRule(PatchRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Patches a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | PatchRuleSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
PatchRuleAsync(PatchRuleSecurityPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> PatchRuleAsync(PatchRuleSecurityPolicyRequest request, CallOptions options)
Patches a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | PatchRuleSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
PatchRuleAsync(PatchRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> PatchRuleAsync(PatchRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Patches a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | PatchRuleSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
RemoveRule(RemoveRuleSecurityPolicyRequest, CallOptions)
public virtual Operation RemoveRule(RemoveRuleSecurityPolicyRequest request, CallOptions options)
Deletes a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | RemoveRuleSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
RemoveRule(RemoveRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation RemoveRule(RemoveRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Deletes a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | RemoveRuleSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
RemoveRuleAsync(RemoveRuleSecurityPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> RemoveRuleAsync(RemoveRuleSecurityPolicyRequest request, CallOptions options)
Deletes a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | RemoveRuleSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
RemoveRuleAsync(RemoveRuleSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> RemoveRuleAsync(RemoveRuleSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Deletes a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | RemoveRuleSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |