[BindServiceMethod(typeof(SecurityPolicies), "BindService")]
public abstract class SecurityPoliciesBase
Base class for server-side implementations of SecurityPolicies
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Methods
AddRule(AddRuleSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> AddRule(AddRuleSecurityPolicyRequest request, ServerCallContext context)
Inserts a rule into a security policy.
Parameters | |
---|---|
Name | Description |
request | AddRuleSecurityPolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |
Delete(DeleteSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> Delete(DeleteSecurityPolicyRequest request, ServerCallContext context)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteSecurityPolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |
Get(GetSecurityPolicyRequest, ServerCallContext)
public virtual Task<SecurityPolicy> Get(GetSecurityPolicyRequest request, ServerCallContext context)
List all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
request | GetSecurityPolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<SecurityPolicy> | The response to send back to the client (wrapped by a task). |
GetRule(GetRuleSecurityPolicyRequest, ServerCallContext)
public virtual Task<SecurityPolicyRule> GetRule(GetRuleSecurityPolicyRequest request, ServerCallContext context)
Gets a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | GetRuleSecurityPolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<SecurityPolicyRule> | The response to send back to the client (wrapped by a task). |
Insert(InsertSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> Insert(InsertSecurityPolicyRequest request, ServerCallContext context)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertSecurityPolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |
List(ListSecurityPoliciesRequest, ServerCallContext)
public virtual Task<SecurityPolicyList> List(ListSecurityPoliciesRequest request, ServerCallContext context)
List all the policies that have been configured for the specified project.
Parameters | |
---|---|
Name | Description |
request | ListSecurityPoliciesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<SecurityPolicyList> | The response to send back to the client (wrapped by a task). |
ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsSecurityPoliciesRequest, ServerCallContext)
public virtual Task<SecurityPoliciesListPreconfiguredExpressionSetsResponse> ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsSecurityPoliciesRequest request, ServerCallContext context)
Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
Parameters | |
---|---|
Name | Description |
request | ListPreconfiguredExpressionSetsSecurityPoliciesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<SecurityPoliciesListPreconfiguredExpressionSetsResponse> | The response to send back to the client (wrapped by a task). |
Patch(PatchSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> Patch(PatchSecurityPolicyRequest request, ServerCallContext context)
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 received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |
PatchRule(PatchRuleSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> PatchRule(PatchRuleSecurityPolicyRequest request, ServerCallContext context)
Patches a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | PatchRuleSecurityPolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |
RemoveRule(RemoveRuleSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> RemoveRule(RemoveRuleSecurityPolicyRequest request, ServerCallContext context)
Deletes a rule at the specified priority.
Parameters | |
---|---|
Name | Description |
request | RemoveRuleSecurityPolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |