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

[BindServiceMethod(typeof(NetworkFirewallPolicies), "BindService")]
public abstract class 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
NameDescription
requestAddAssociationNetworkFirewallPolicyRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<FirewallPolicy>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<FirewallPolicyAssociation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Policy>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<FirewallPolicyRule>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<FirewallPolicyList>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Policy>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<TestPermissionsResponse>

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