Compute Engine v1 API - Class NetworkFirewallPolicies.NetworkFirewallPoliciesBase (2.16.0)

[BindServiceMethod(typeof(NetworkFirewallPolicies), "BindService")]
public abstract class NetworkFirewallPolicies.NetworkFirewallPoliciesBase

Reference documentation and code samples for the Compute Engine v1 API class NetworkFirewallPolicies.NetworkFirewallPoliciesBase.

Base class for server-side implementations of NetworkFirewallPolicies

Inheritance

object > NetworkFirewallPolicies.NetworkFirewallPoliciesBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

AddAssociation(AddAssociationNetworkFirewallPolicyRequest, ServerCallContext)

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

Inserts an association for the specified firewall policy.

Parameters
Name Description
request AddAssociationNetworkFirewallPolicyRequest

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

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

Inserts a rule into a firewall policy.

Parameters
Name Description
request AddRuleNetworkFirewallPolicyRequest

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

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

Copies rules to the specified firewall policy.

Parameters
Name Description
request CloneRulesNetworkFirewallPolicyRequest

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

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

Deletes the specified policy.

Parameters
Name Description
request DeleteNetworkFirewallPolicyRequest

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

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

Returns the specified network firewall policy.

Parameters
Name Description
request GetNetworkFirewallPolicyRequest

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

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

Gets an association with the specified name.

Parameters
Name Description
request GetAssociationNetworkFirewallPolicyRequest

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

public virtual Task<Policy> GetIamPolicy(GetIamPolicyNetworkFirewallPolicyRequest 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 GetIamPolicyNetworkFirewallPolicyRequest

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

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

Gets a rule of the specified priority.

Parameters
Name Description
request GetRuleNetworkFirewallPolicyRequest

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

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

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

Parameters
Name Description
request InsertNetworkFirewallPolicyRequest

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

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

Lists all the policies that have been configured for the specified project.

Parameters
Name Description
request ListNetworkFirewallPoliciesRequest

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

Patch(PatchNetworkFirewallPolicyRequest, ServerCallContext)

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

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

Parameters
Name Description
request PatchNetworkFirewallPolicyRequest

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

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

Patches a rule of the specified priority.

Parameters
Name Description
request PatchRuleNetworkFirewallPolicyRequest

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

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

Removes an association for the specified firewall policy.

Parameters
Name Description
request RemoveAssociationNetworkFirewallPolicyRequest

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

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

Deletes a rule of the specified priority.

Parameters
Name Description
request RemoveRuleNetworkFirewallPolicyRequest

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

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

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

Parameters
Name Description
request SetIamPolicyNetworkFirewallPolicyRequest

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

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

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsNetworkFirewallPolicyRequest

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