Show / Hide Table of Contents

Class RegionNetworkPoliciesResource

The "regionNetworkPolicies" collection of methods.

Inheritance
object
RegionNetworkPoliciesResource
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 RegionNetworkPoliciesResource

Constructors

RegionNetworkPoliciesResource(IClientService)

Constructs a new resource.

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

Methods

AddAssociation(NetworkPolicyAssociation, string, string, string)

Inserts an association for the specified network policy.

Declaration
public virtual RegionNetworkPoliciesResource.AddAssociationRequest AddAssociation(NetworkPolicyAssociation body, string project, string region, string networkPolicy)
Parameters
Type Name Description
NetworkPolicyAssociation body

The body of the request.

string project

Project ID for this request.

string region

Name of the region of this request.

string networkPolicy

Name of the network policy resource to update.

Returns
Type Description
RegionNetworkPoliciesResource.AddAssociationRequest

AddTrafficClassificationRule(NetworkPolicyTrafficClassificationRule, string, string, string)

Inserts a rule into a network policy.

Declaration
public virtual RegionNetworkPoliciesResource.AddTrafficClassificationRuleRequest AddTrafficClassificationRule(NetworkPolicyTrafficClassificationRule body, string project, string region, string networkPolicy)
Parameters
Type Name Description
NetworkPolicyTrafficClassificationRule body

The body of the request.

string project

Project ID for this request.

string region

Name of the region of this request.

string networkPolicy

Name of the network policy resource to update.

Returns
Type Description
RegionNetworkPoliciesResource.AddTrafficClassificationRuleRequest

AggregatedList(string)

Retrieves an aggregated list of network policies. To prevent failure, it's recommended that you set the returnPartialSuccess parameter to true.

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

Project ID for this request.

Returns
Type Description
RegionNetworkPoliciesResource.AggregatedListRequest

Delete(string, string, string)

Deletes the specified policy.

Declaration
public virtual RegionNetworkPoliciesResource.DeleteRequest Delete(string project, string region, string networkPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region of this request.

string networkPolicy

Name of the network policy resource to delete.

Returns
Type Description
RegionNetworkPoliciesResource.DeleteRequest

Get(string, string, string)

Returns the specified network policy.

Declaration
public virtual RegionNetworkPoliciesResource.GetRequest Get(string project, string region, string networkPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region of this request.

string networkPolicy

Name of the network policy resource to return.

Returns
Type Description
RegionNetworkPoliciesResource.GetRequest

GetAssociation(string, string, string)

Gets an association with the specified name.

Declaration
public virtual RegionNetworkPoliciesResource.GetAssociationRequest GetAssociation(string project, string region, string networkPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region of this request.

string networkPolicy

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

Returns
Type Description
RegionNetworkPoliciesResource.GetAssociationRequest

GetTrafficClassificationRule(string, string, string)

Gets a rule of the specified priority.

Declaration
public virtual RegionNetworkPoliciesResource.GetTrafficClassificationRuleRequest GetTrafficClassificationRule(string project, string region, string networkPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region of this request.

string networkPolicy

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

Returns
Type Description
RegionNetworkPoliciesResource.GetTrafficClassificationRuleRequest

Insert(NetworkPolicy, string, string)

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

Declaration
public virtual RegionNetworkPoliciesResource.InsertRequest Insert(NetworkPolicy body, string project, string region)
Parameters
Type Name Description
NetworkPolicy body

The body of the request.

string project

Project ID for this request.

string region

Name of the region of this request.

Returns
Type Description
RegionNetworkPoliciesResource.InsertRequest

List(string, string)

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

Declaration
public virtual RegionNetworkPoliciesResource.ListRequest List(string project, string region)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region of this request.

Returns
Type Description
RegionNetworkPoliciesResource.ListRequest

Patch(NetworkPolicy, string, string, string)

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

Declaration
public virtual RegionNetworkPoliciesResource.PatchRequest Patch(NetworkPolicy body, string project, string region, string networkPolicy)
Parameters
Type Name Description
NetworkPolicy body

The body of the request.

string project

Project ID for this request.

string region

Name of the region of this request.

string networkPolicy

Name of the network policy resource to update.

Returns
Type Description
RegionNetworkPoliciesResource.PatchRequest

PatchTrafficClassificationRule(NetworkPolicyTrafficClassificationRule, string, string, string)

Patches a rule of the specified priority.

Declaration
public virtual RegionNetworkPoliciesResource.PatchTrafficClassificationRuleRequest PatchTrafficClassificationRule(NetworkPolicyTrafficClassificationRule body, string project, string region, string networkPolicy)
Parameters
Type Name Description
NetworkPolicyTrafficClassificationRule body

The body of the request.

string project

Project ID for this request.

string region

Name of the region of this request.

string networkPolicy

Name of the network policy resource to update.

Returns
Type Description
RegionNetworkPoliciesResource.PatchTrafficClassificationRuleRequest

RemoveAssociation(string, string, string)

Removes an association for the specified network policy.

Declaration
public virtual RegionNetworkPoliciesResource.RemoveAssociationRequest RemoveAssociation(string project, string region, string networkPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region of this request.

string networkPolicy

Name of the network policy resource to update.

Returns
Type Description
RegionNetworkPoliciesResource.RemoveAssociationRequest

RemoveTrafficClassificationRule(string, string, string)

Deletes a rule of the specified priority.

Declaration
public virtual RegionNetworkPoliciesResource.RemoveTrafficClassificationRuleRequest RemoveTrafficClassificationRule(string project, string region, string networkPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region of this request.

string networkPolicy

Name of the network policy resource to update.

Returns
Type Description
RegionNetworkPoliciesResource.RemoveTrafficClassificationRuleRequest
In this article
Back to top Generated by DocFX