Compute Engine v1 API - Class FirewallPolicies.FirewallPoliciesBase (3.0.0)

[BindServiceMethod(typeof(FirewallPolicies), "BindService")]
public abstract class FirewallPolicies.FirewallPoliciesBase

Reference documentation and code samples for the Compute Engine v1 API class FirewallPolicies.FirewallPoliciesBase.

Base class for server-side implementations of FirewallPolicies

Inheritance

object > FirewallPolicies.FirewallPoliciesBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

AddAssociation(AddAssociationFirewallPolicyRequest, ServerCallContext)

public virtual Task<Operation> AddAssociation(AddAssociationFirewallPolicyRequest request, ServerCallContext context)

Inserts an association for the specified firewall policy.

Parameters
Name Description
request AddAssociationFirewallPolicyRequest

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).

AddRule(AddRuleFirewallPolicyRequest, ServerCallContext)

public virtual Task<Operation> AddRule(AddRuleFirewallPolicyRequest request, ServerCallContext context)

Inserts a rule into a firewall policy.

Parameters
Name Description
request AddRuleFirewallPolicyRequest

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).

CloneRules(CloneRulesFirewallPolicyRequest, ServerCallContext)

public virtual Task<Operation> CloneRules(CloneRulesFirewallPolicyRequest request, ServerCallContext context)

Copies rules to the specified firewall policy.

Parameters
Name Description
request CloneRulesFirewallPolicyRequest

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).

Delete(DeleteFirewallPolicyRequest, ServerCallContext)

public virtual Task<Operation> Delete(DeleteFirewallPolicyRequest request, ServerCallContext context)

Deletes the specified policy.

Parameters
Name Description
request DeleteFirewallPolicyRequest

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(GetFirewallPolicyRequest, ServerCallContext)

public virtual Task<FirewallPolicy> Get(GetFirewallPolicyRequest request, ServerCallContext context)

Returns the specified firewall policy.

Parameters
Name Description
request GetFirewallPolicyRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskFirewallPolicy

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

GetAssociation(GetAssociationFirewallPolicyRequest, ServerCallContext)

public virtual Task<FirewallPolicyAssociation> GetAssociation(GetAssociationFirewallPolicyRequest request, ServerCallContext context)

Gets an association with the specified name.

Parameters
Name Description
request GetAssociationFirewallPolicyRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskFirewallPolicyAssociation

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

GetIamPolicy(GetIamPolicyFirewallPolicyRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyFirewallPolicyRequest request, ServerCallContext context)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
request GetIamPolicyFirewallPolicyRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskPolicy

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

GetRule(GetRuleFirewallPolicyRequest, ServerCallContext)

public virtual Task<FirewallPolicyRule> GetRule(GetRuleFirewallPolicyRequest request, ServerCallContext context)

Gets a rule of the specified priority.

Parameters
Name Description
request GetRuleFirewallPolicyRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskFirewallPolicyRule

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

Insert(InsertFirewallPolicyRequest, ServerCallContext)

public virtual Task<Operation> Insert(InsertFirewallPolicyRequest request, ServerCallContext context)

Creates a new policy in the specified project using the data included in the request.

Parameters
Name Description
request InsertFirewallPolicyRequest

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(ListFirewallPoliciesRequest, ServerCallContext)

public virtual Task<FirewallPolicyList> List(ListFirewallPoliciesRequest request, ServerCallContext context)

Lists all the policies that have been configured for the specified folder or organization.

Parameters
Name Description
request ListFirewallPoliciesRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskFirewallPolicyList

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

ListAssociations(ListAssociationsFirewallPolicyRequest, ServerCallContext)

public virtual Task<FirewallPoliciesListAssociationsResponse> ListAssociations(ListAssociationsFirewallPolicyRequest request, ServerCallContext context)

Lists associations of a specified target, i.e., organization or folder.

Parameters
Name Description
request ListAssociationsFirewallPolicyRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskFirewallPoliciesListAssociationsResponse

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

Move(MoveFirewallPolicyRequest, ServerCallContext)

public virtual Task<Operation> Move(MoveFirewallPolicyRequest request, ServerCallContext context)

Moves the specified firewall policy.

Parameters
Name Description
request MoveFirewallPolicyRequest

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).

Patch(PatchFirewallPolicyRequest, ServerCallContext)

public virtual Task<Operation> Patch(PatchFirewallPolicyRequest request, ServerCallContext context)

Patches the specified policy with the data included in the request.

Parameters
Name Description
request PatchFirewallPolicyRequest

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(PatchRuleFirewallPolicyRequest, ServerCallContext)

public virtual Task<Operation> PatchRule(PatchRuleFirewallPolicyRequest request, ServerCallContext context)

Patches a rule of the specified priority.

Parameters
Name Description
request PatchRuleFirewallPolicyRequest

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).

RemoveAssociation(RemoveAssociationFirewallPolicyRequest, ServerCallContext)

public virtual Task<Operation> RemoveAssociation(RemoveAssociationFirewallPolicyRequest request, ServerCallContext context)

Removes an association for the specified firewall policy.

Parameters
Name Description
request RemoveAssociationFirewallPolicyRequest

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(RemoveRuleFirewallPolicyRequest, ServerCallContext)

public virtual Task<Operation> RemoveRule(RemoveRuleFirewallPolicyRequest request, ServerCallContext context)

Deletes a rule of the specified priority.

Parameters
Name Description
request RemoveRuleFirewallPolicyRequest

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).

SetIamPolicy(SetIamPolicyFirewallPolicyRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyFirewallPolicyRequest request, ServerCallContext context)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
request SetIamPolicyFirewallPolicyRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskPolicy

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

TestIamPermissions(TestIamPermissionsFirewallPolicyRequest, ServerCallContext)

public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsFirewallPolicyRequest request, ServerCallContext context)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsFirewallPolicyRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskTestPermissionsResponse

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