Compute Engine v1 API - Class SecurityPolicies.SecurityPoliciesBase (3.2.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
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
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. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListSecurityPoliciesRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
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
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
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
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
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
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
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
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
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
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
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
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 policy, 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
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
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. To clear fields in the rule, leave the fields empty and specify them in the updateMask.

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
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
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
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
Name Description
request SetLabelsSecurityPolicyRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskOperation

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