[BindServiceMethod(typeof(SecurityPolicies), "BindService")]
public abstract class SecurityPoliciesBaseBase 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 |
AddRuleSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
AggregatedList(AggregatedListSecurityPoliciesRequest, ServerCallContext)
public virtual Task<SecurityPoliciesAggregatedList> AggregatedList(AggregatedListSecurityPoliciesRequest request, ServerCallContext context)Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListSecurityPoliciesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task<SecurityPoliciesAggregatedList> |
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 |
DeleteSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
GetSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
GetRuleSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
InsertSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
ListSecurityPoliciesRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
ListPreconfiguredExpressionSetsSecurityPoliciesRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
PatchSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
PatchRuleSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
RemoveRuleSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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). |