Show / Hide Table of Contents

Class RegionSecurityPoliciesResource

The "regionSecurityPolicies" collection of methods.

Inheritance
object
RegionSecurityPoliciesResource
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.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class RegionSecurityPoliciesResource

Constructors

RegionSecurityPoliciesResource(IClientService)

Constructs a new resource.

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

Methods

AddRule(SecurityPolicyRule, string, string, string)

Inserts a rule into a security policy.

Declaration
public virtual RegionSecurityPoliciesResource.AddRuleRequest AddRule(SecurityPolicyRule body, string project, string region, string securityPolicy)
Parameters
Type Name Description
SecurityPolicyRule body

The body of the request.

string project

Project ID for this request.

string region

Name of the region scoping this request.

string securityPolicy

Name of the security policy to update.

Returns
Type Description
RegionSecurityPoliciesResource.AddRuleRequest

Delete(string, string, string)

Deletes the specified policy.

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

Project ID for this request.

string region

Name of the region scoping this request.

string securityPolicy

Name of the security policy to delete.

Returns
Type Description
RegionSecurityPoliciesResource.DeleteRequest

Get(string, string, string)

List all of the ordered rules present in a single specified policy.

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

Project ID for this request.

string region

Name of the region scoping this request.

string securityPolicy

Name of the security policy to get.

Returns
Type Description
RegionSecurityPoliciesResource.GetRequest

GetRule(string, string, string)

Gets a rule at the specified priority.

Declaration
public virtual RegionSecurityPoliciesResource.GetRuleRequest GetRule(string project, string region, string securityPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region scoping this request.

string securityPolicy

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

Returns
Type Description
RegionSecurityPoliciesResource.GetRuleRequest

Insert(SecurityPolicy, string, string)

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

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

The body of the request.

string project

Project ID for this request.

string region

Name of the region scoping this request.

Returns
Type Description
RegionSecurityPoliciesResource.InsertRequest

List(string, string)

List all the policies that have been configured for the specified project and region.

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

Project ID for this request.

string region

Name of the region scoping this request.

Returns
Type Description
RegionSecurityPoliciesResource.ListRequest

Patch(SecurityPolicy, string, string, string)

Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.

Declaration
public virtual RegionSecurityPoliciesResource.PatchRequest Patch(SecurityPolicy body, string project, string region, string securityPolicy)
Parameters
Type Name Description
SecurityPolicy body

The body of the request.

string project

Project ID for this request.

string region

Name of the region scoping this request.

string securityPolicy

Name of the security policy to update.

Returns
Type Description
RegionSecurityPoliciesResource.PatchRequest

PatchRule(SecurityPolicyRule, string, string, string)

Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.

Declaration
public virtual RegionSecurityPoliciesResource.PatchRuleRequest PatchRule(SecurityPolicyRule body, string project, string region, string securityPolicy)
Parameters
Type Name Description
SecurityPolicyRule body

The body of the request.

string project

Project ID for this request.

string region

Name of the region scoping this request.

string securityPolicy

Name of the security policy to update.

Returns
Type Description
RegionSecurityPoliciesResource.PatchRuleRequest

RemoveRule(string, string, string)

Deletes a rule at the specified priority.

Declaration
public virtual RegionSecurityPoliciesResource.RemoveRuleRequest RemoveRule(string project, string region, string securityPolicy)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region scoping this request.

string securityPolicy

Name of the security policy to update.

Returns
Type Description
RegionSecurityPoliciesResource.RemoveRuleRequest

SetLabels(RegionSetLabelsRequest, string, string, string)

Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.

Declaration
public virtual RegionSecurityPoliciesResource.SetLabelsRequest SetLabels(RegionSetLabelsRequest body, string project, string region, string resource)
Parameters
Type Name Description
RegionSetLabelsRequest body

The body of the request.

string project

Project ID for this request.

string region

The region for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
RegionSecurityPoliciesResource.SetLabelsRequest
In this article
Back to top Generated by DocFX