Class SecurityPolicies.SecurityPoliciesBase (1.0.0)

[BindServiceMethod(typeof(SecurityPolicies), "BindService")]
public abstract class SecurityPoliciesBase

Base class for server-side implementations of SecurityPolicies

Inheritance

Object > SecurityPolicies.SecurityPoliciesBase

Namespace

Google.Cloud.Compute.V1

Assembly

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
NameDescription
requestAddRuleSecurityPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestDeleteSecurityPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestGetSecurityPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestGetRuleSecurityPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestInsertSecurityPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestListSecurityPoliciesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestListPreconfiguredExpressionSetsSecurityPoliciesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestPatchSecurityPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestPatchRuleSecurityPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestRemoveRuleSecurityPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).