Show / Hide Table of Contents

Class NetworkFirewallPoliciesResource

The "networkFirewallPolicies" collection of methods.

Inheritance
object
NetworkFirewallPoliciesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class NetworkFirewallPoliciesResource

Constructors

NetworkFirewallPoliciesResource(IClientService)

Constructs a new resource.

Declaration
public NetworkFirewallPoliciesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

AddAssociation(FirewallPolicyAssociation, string, string)

Inserts an association for the specified firewall policy.

Declaration
public virtual NetworkFirewallPoliciesResource.AddAssociationRequest AddAssociation(FirewallPolicyAssociation body, string project, string firewallPolicy)
Parameters
Type Name Description
FirewallPolicyAssociation body

The body of the request.

string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to update.

Returns
Type Description
NetworkFirewallPoliciesResource.AddAssociationRequest

AddPacketMirroringRule(FirewallPolicyRule, string, string)

Inserts a packet mirroring rule into a firewall policy.

Declaration
public virtual NetworkFirewallPoliciesResource.AddPacketMirroringRuleRequest AddPacketMirroringRule(FirewallPolicyRule body, string project, string firewallPolicy)
Parameters
Type Name Description
FirewallPolicyRule body

The body of the request.

string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to update.

Returns
Type Description
NetworkFirewallPoliciesResource.AddPacketMirroringRuleRequest

AddRule(FirewallPolicyRule, string, string)

Inserts a rule into a firewall policy.

Declaration
public virtual NetworkFirewallPoliciesResource.AddRuleRequest AddRule(FirewallPolicyRule body, string project, string firewallPolicy)
Parameters
Type Name Description
FirewallPolicyRule body

The body of the request.

string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to update.

Returns
Type Description
NetworkFirewallPoliciesResource.AddRuleRequest

AggregatedList(string)

Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes (global and regional) and grouping the results per scope. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Declaration
public virtual NetworkFirewallPoliciesResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type Name Description
string project

Project ID for this request.

Returns
Type Description
NetworkFirewallPoliciesResource.AggregatedListRequest

CloneRules(string, string)

Copies rules to the specified firewall policy.

Declaration
public virtual NetworkFirewallPoliciesResource.CloneRulesRequest CloneRules(string project, string firewallPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to update.

Returns
Type Description
NetworkFirewallPoliciesResource.CloneRulesRequest

Delete(string, string)

Deletes the specified policy.

Declaration
public virtual NetworkFirewallPoliciesResource.DeleteRequest Delete(string project, string firewallPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to delete.

Returns
Type Description
NetworkFirewallPoliciesResource.DeleteRequest

Get(string, string)

Returns the specified network firewall policy.

Declaration
public virtual NetworkFirewallPoliciesResource.GetRequest Get(string project, string firewallPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to get.

Returns
Type Description
NetworkFirewallPoliciesResource.GetRequest

GetAssociation(string, string)

Gets an association with the specified name.

Declaration
public virtual NetworkFirewallPoliciesResource.GetAssociationRequest GetAssociation(string project, string firewallPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to which the queried association belongs.

Returns
Type Description
NetworkFirewallPoliciesResource.GetAssociationRequest

GetIamPolicy(string, string)

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

Declaration
public virtual NetworkFirewallPoliciesResource.GetIamPolicyRequest GetIamPolicy(string project, string resource)
Parameters
Type Name Description
string project

Project ID for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
NetworkFirewallPoliciesResource.GetIamPolicyRequest

GetPacketMirroringRule(string, string)

Gets a packet mirroring rule of the specified priority.

Declaration
public virtual NetworkFirewallPoliciesResource.GetPacketMirroringRuleRequest GetPacketMirroringRule(string project, string firewallPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to which the queried rule belongs.

Returns
Type Description
NetworkFirewallPoliciesResource.GetPacketMirroringRuleRequest

GetRule(string, string)

Gets a rule of the specified priority.

Declaration
public virtual NetworkFirewallPoliciesResource.GetRuleRequest GetRule(string project, string firewallPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to which the queried rule belongs.

Returns
Type Description
NetworkFirewallPoliciesResource.GetRuleRequest

Insert(FirewallPolicy, string)

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

Declaration
public virtual NetworkFirewallPoliciesResource.InsertRequest Insert(FirewallPolicy body, string project)
Parameters
Type Name Description
FirewallPolicy body

The body of the request.

string project

Project ID for this request.

Returns
Type Description
NetworkFirewallPoliciesResource.InsertRequest

List(string)

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

Declaration
public virtual NetworkFirewallPoliciesResource.ListRequest List(string project)
Parameters
Type Name Description
string project

Project ID for this request.

Returns
Type Description
NetworkFirewallPoliciesResource.ListRequest

Patch(FirewallPolicy, string, string)

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

Declaration
public virtual NetworkFirewallPoliciesResource.PatchRequest Patch(FirewallPolicy body, string project, string firewallPolicy)
Parameters
Type Name Description
FirewallPolicy body

The body of the request.

string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to update.

Returns
Type Description
NetworkFirewallPoliciesResource.PatchRequest

PatchAssociation(FirewallPolicyAssociation, string, string)

Updates an association for the specified network firewall policy.

Declaration
public virtual NetworkFirewallPoliciesResource.PatchAssociationRequest PatchAssociation(FirewallPolicyAssociation body, string project, string firewallPolicy)
Parameters
Type Name Description
FirewallPolicyAssociation body

The body of the request.

string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to update.

Returns
Type Description
NetworkFirewallPoliciesResource.PatchAssociationRequest

PatchPacketMirroringRule(FirewallPolicyRule, string, string)

Patches a packet mirroring rule of the specified priority.

Declaration
public virtual NetworkFirewallPoliciesResource.PatchPacketMirroringRuleRequest PatchPacketMirroringRule(FirewallPolicyRule body, string project, string firewallPolicy)
Parameters
Type Name Description
FirewallPolicyRule body

The body of the request.

string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to update.

Returns
Type Description
NetworkFirewallPoliciesResource.PatchPacketMirroringRuleRequest

PatchRule(FirewallPolicyRule, string, string)

Patches a rule of the specified priority.

Declaration
public virtual NetworkFirewallPoliciesResource.PatchRuleRequest PatchRule(FirewallPolicyRule body, string project, string firewallPolicy)
Parameters
Type Name Description
FirewallPolicyRule body

The body of the request.

string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to update.

Returns
Type Description
NetworkFirewallPoliciesResource.PatchRuleRequest

RemoveAssociation(string, string)

Removes an association for the specified firewall policy.

Declaration
public virtual NetworkFirewallPoliciesResource.RemoveAssociationRequest RemoveAssociation(string project, string firewallPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to update.

Returns
Type Description
NetworkFirewallPoliciesResource.RemoveAssociationRequest

RemovePacketMirroringRule(string, string)

Deletes a packet mirroring rule of the specified priority.

Declaration
public virtual NetworkFirewallPoliciesResource.RemovePacketMirroringRuleRequest RemovePacketMirroringRule(string project, string firewallPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to update.

Returns
Type Description
NetworkFirewallPoliciesResource.RemovePacketMirroringRuleRequest

RemoveRule(string, string)

Deletes a rule of the specified priority.

Declaration
public virtual NetworkFirewallPoliciesResource.RemoveRuleRequest RemoveRule(string project, string firewallPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string firewallPolicy

Name of the firewall policy to update.

Returns
Type Description
NetworkFirewallPoliciesResource.RemoveRuleRequest

SetIamPolicy(GlobalSetPolicyRequest, string, string)

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

Declaration
public virtual NetworkFirewallPoliciesResource.SetIamPolicyRequest SetIamPolicy(GlobalSetPolicyRequest body, string project, string resource)
Parameters
Type Name Description
GlobalSetPolicyRequest body

The body of the request.

string project

Project ID for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
NetworkFirewallPoliciesResource.SetIamPolicyRequest

TestIamPermissions(TestPermissionsRequest, string, string)

Returns permissions that a caller has on the specified resource.

Declaration
public virtual NetworkFirewallPoliciesResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string resource)
Parameters
Type Name Description
TestPermissionsRequest body

The body of the request.

string project

Project ID for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
NetworkFirewallPoliciesResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX