Compute Engine v1 API - Class FirewallPolicies.FirewallPoliciesBase (2.15.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
NameDescription
requestAddAssociationFirewallPolicyRequest

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

AddRule(AddRuleFirewallPolicyRequest, ServerCallContext)

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

Inserts a rule into a firewall policy.

Parameters
NameDescription
requestAddRuleFirewallPolicyRequest

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

CloneRules(CloneRulesFirewallPolicyRequest, ServerCallContext)

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

Copies rules to the specified firewall policy.

Parameters
NameDescription
requestCloneRulesFirewallPolicyRequest

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

Delete(DeleteFirewallPolicyRequest, ServerCallContext)

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

Deletes the specified policy.

Parameters
NameDescription
requestDeleteFirewallPolicyRequest

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

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

Returns the specified firewall policy.

Parameters
NameDescription
requestGetFirewallPolicyRequest

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

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(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
NameDescription
requestListFirewallPoliciesRequest

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

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

Patch(PatchFirewallPolicyRequest, ServerCallContext)

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

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

Parameters
NameDescription
requestPatchFirewallPolicyRequest

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

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

Patches a rule of the specified priority.

Parameters
NameDescription
requestPatchRuleFirewallPolicyRequest

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

RemoveAssociation(RemoveAssociationFirewallPolicyRequest, ServerCallContext)

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

Removes an association for the specified firewall policy.

Parameters
NameDescription
requestRemoveAssociationFirewallPolicyRequest

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

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

Deletes a rule of the specified priority.

Parameters
NameDescription
requestRemoveRuleFirewallPolicyRequest

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

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

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskTestPermissionsResponse

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