Class PoliciesResource
The "policies" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Dns.v2beta1
Assembly: Google.Apis.Dns.v2beta1.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)
Create 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)
Delete a previously created Policy. Will fail 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)
Fetch 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)
Enumerate 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)
Apply 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)
Update 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 |