Compute Engine v1 API - Class SecurityPolicies.SecurityPoliciesBase (2.10.0)

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

Reference documentation and code samples for the Compute Engine v1 API class SecurityPolicies.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
TaskOperation

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskSecurityPoliciesAggregatedList

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
TaskOperation

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
TaskSecurityPolicy

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
TaskSecurityPolicyRule

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
TaskOperation

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
TaskSecurityPolicyList

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
TaskSecurityPoliciesListPreconfiguredExpressionSetsResponse

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. To clear fields in the rule, 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
NameDescription
requestPatchSecurityPolicyRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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
TaskOperation

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
TaskOperation

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

SetLabels(SetLabelsSecurityPolicyRequest, ServerCallContext)

public virtual Task<Operation> SetLabels(SetLabelsSecurityPolicyRequest request, ServerCallContext context)

Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.

Parameters
NameDescription
requestSetLabelsSecurityPolicyRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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