Show / Hide Table of Contents

Class PoliciesResource

The "policies" collection of methods.

Inheritance
System.Object
PoliciesResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Dns.v2
Assembly: Google.Apis.Dns.v2.dll
Syntax
public class PoliciesResource

Constructors

PoliciesResource(IClientService)

Constructs a new resource.

Declaration
public PoliciesResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.IClientService service

Methods

Create(Policy, String, String)

Creates a new Policy.

Declaration
public virtual PoliciesResource.CreateRequest Create(Policy body, string project, string location)
Parameters
Type Name Description
Policy body

The body of the request.

System.String project

Identifies the project addressed by this request.

System.String location

Specifies the location of the resource. This information will be used for routing and will be part of the resource name.

Returns
Type Description
PoliciesResource.CreateRequest

Delete(String, String, String)

Deletes a previously created Policy. Fails if the policy is still being referenced by a network.

Declaration
public virtual PoliciesResource.DeleteRequest Delete(string project, string location, string policy)
Parameters
Type Name Description
System.String project

Identifies the project addressed by this request.

System.String location

Specifies the location of the resource. This information will be used for routing and will be part of the resource name.

System.String policy

User given friendly name of the policy addressed by this request.

Returns
Type Description
PoliciesResource.DeleteRequest

Get(String, String, String)

Fetches the representation of an existing Policy.

Declaration
public virtual PoliciesResource.GetRequest Get(string project, string location, string policy)
Parameters
Type Name Description
System.String project

Identifies the project addressed by this request.

System.String location

Specifies the location of the resource. This information will be used for routing and will be part of the resource name.

System.String policy

User given friendly name of the policy addressed by this request.

Returns
Type Description
PoliciesResource.GetRequest

List(String, String)

Enumerates all Policies associated with a project.

Declaration
public virtual PoliciesResource.ListRequest List(string project, string location)
Parameters
Type Name Description
System.String project

Identifies the project addressed by this request.

System.String location

Specifies the location of the resource. This information will be used for routing and will be part of the resource name.

Returns
Type Description
PoliciesResource.ListRequest

Patch(Policy, String, String, String)

Applies a partial update to an existing Policy.

Declaration
public virtual PoliciesResource.PatchRequest Patch(Policy body, string project, string location, string policy)
Parameters
Type Name Description
Policy body

The body of the request.

System.String project

Identifies the project addressed by this request.

System.String location

Specifies the location of the resource. This information will be used for routing and will be part of the resource name.

System.String policy

User given friendly name of the policy addressed by this request.

Returns
Type Description
PoliciesResource.PatchRequest

Update(Policy, String, String, String)

Updates an existing Policy.

Declaration
public virtual PoliciesResource.UpdateRequest Update(Policy body, string project, string location, string policy)
Parameters
Type Name Description
Policy body

The body of the request.

System.String project

Identifies the project addressed by this request.

System.String location

Specifies the location of the resource. This information will be used for routing and will be part of the resource name.

System.String policy

User given friendly name of the policy addressed by this request.

Returns
Type Description
PoliciesResource.UpdateRequest
In This Article
Back to top