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.v1beta2
Assembly: Google.Apis.Dns.v1beta2.dll
Syntax
public class PoliciesResource

Constructors

PoliciesResource(IClientService)

Constructs a new resource.

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

Methods

Create(Policy, String)

Creates a new Policy.

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

The body of the request.

System.String project

Identifies the project addressed by this request.

Returns
Type Description
PoliciesResource.CreateRequest

Delete(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 policy)
Parameters
Type Name Description
System.String project

Identifies the project addressed by this request.

System.String policy

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

Returns
Type Description
PoliciesResource.DeleteRequest

Get(String, String)

Fetches the representation of an existing Policy.

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

Identifies the project addressed by this request.

System.String policy

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

Returns
Type Description
PoliciesResource.GetRequest

List(String)

Enumerates all Policies associated with a project.

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

Identifies the project addressed by this request.

Returns
Type Description
PoliciesResource.ListRequest

Patch(Policy, String, String)

Applies a partial update to an existing Policy.

Declaration
public virtual PoliciesResource.PatchRequest Patch(Policy body, string project, 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 policy

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

Returns
Type Description
PoliciesResource.PatchRequest

Update(Policy, String, String)

Updates an existing Policy.

Declaration
public virtual PoliciesResource.UpdateRequest Update(Policy body, string project, 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 policy

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

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