Class PoliciesResource
The "policies" collection of methods.
Inherited Members
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. |
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 |
---|---|---|
string | project | Identifies the project addressed by this request. |
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 |
---|---|---|
string | project | Identifies the project addressed by this request. |
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 |
---|---|---|
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. |
string | project | Identifies the project addressed by this request. |
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. |
string | project | Identifies the project addressed by this request. |
string | policy | User given friendly name of the policy addressed by this request. |
Returns
Type | Description |
---|---|
PoliciesResource.UpdateRequest |