Class ManagedZonesResource
The "managedZones" collection of methods.
Inherited Members
Namespace: Google.Apis.Dns.v1
Assembly: Google.Apis.Dns.v1.dll
Syntax
public class ManagedZonesResource
Constructors
ManagedZonesResource(IClientService)
Constructs a new resource.
Declaration
public ManagedZonesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(ManagedZone, string)
Creates a new ManagedZone. Note: While dns.managedZones.create is the baseline permission required to
invoke this method, additional permissions are required if the managed zone configuration references other
resources.
Declaration
public virtual ManagedZonesResource.CreateRequest Create(ManagedZone body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| ManagedZone | body | The body of the request. |
| string | project | Identifies the project addressed by this request. |
Returns
| Type | Description |
|---|---|
| ManagedZonesResource.CreateRequest |
Delete(string, string)
Deletes a previously created ManagedZone.
Declaration
public virtual ManagedZonesResource.DeleteRequest Delete(string project, string managedZone)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Identifies the project addressed by this request. |
| string | managedZone | Identifies the managed zone addressed by this request. Can be the managed zone name or ID. |
Returns
| Type | Description |
|---|---|
| ManagedZonesResource.DeleteRequest |
Get(string, string)
Fetches the representation of an existing ManagedZone.
Declaration
public virtual ManagedZonesResource.GetRequest Get(string project, string managedZone)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Identifies the project addressed by this request. |
| string | managedZone | Identifies the managed zone addressed by this request. Can be the managed zone name or ID. |
Returns
| Type | Description |
|---|---|
| ManagedZonesResource.GetRequest |
GetIamPolicy(GoogleIamV1GetIamPolicyRequest, string)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Declaration
public virtual ManagedZonesResource.GetIamPolicyRequest GetIamPolicy(GoogleIamV1GetIamPolicyRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleIamV1GetIamPolicyRequest | body | The body of the request. |
| string | resource | REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| ManagedZonesResource.GetIamPolicyRequest |
List(string)
Enumerates ManagedZones that have been created but not yet deleted.
Declaration
public virtual ManagedZonesResource.ListRequest List(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Identifies the project addressed by this request. |
Returns
| Type | Description |
|---|---|
| ManagedZonesResource.ListRequest |
Patch(ManagedZone, string, string)
Applies a partial update to an existing ManagedZone.
Declaration
public virtual ManagedZonesResource.PatchRequest Patch(ManagedZone body, string project, string managedZone)
Parameters
| Type | Name | Description |
|---|---|---|
| ManagedZone | body | The body of the request. |
| string | project | Identifies the project addressed by this request. |
| string | managedZone | Identifies the managed zone addressed by this request. Can be the managed zone name or ID. |
Returns
| Type | Description |
|---|---|
| ManagedZonesResource.PatchRequest |
SetIamPolicy(GoogleIamV1SetIamPolicyRequest, string)
Sets the access control policy on the specified resource. Replaces any existing policy. Can return
NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Declaration
public virtual ManagedZonesResource.SetIamPolicyRequest SetIamPolicy(GoogleIamV1SetIamPolicyRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleIamV1SetIamPolicyRequest | body | The body of the request. |
| string | resource | REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| ManagedZonesResource.SetIamPolicyRequest |
TestIamPermissions(GoogleIamV1TestIamPermissionsRequest, string)
Returns permissions that a caller has on the specified resource. If the resource does not exist, this
returns an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used
for building permission-aware UIs and command-line tools, not for authorization checking. This operation may
"fail open" without warning.
Declaration
public virtual ManagedZonesResource.TestIamPermissionsRequest TestIamPermissions(GoogleIamV1TestIamPermissionsRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleIamV1TestIamPermissionsRequest | body | The body of the request. |
| string | resource | REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| ManagedZonesResource.TestIamPermissionsRequest |
Update(ManagedZone, string, string)
Updates an existing ManagedZone.
Declaration
public virtual ManagedZonesResource.UpdateRequest Update(ManagedZone body, string project, string managedZone)
Parameters
| Type | Name | Description |
|---|---|---|
| ManagedZone | body | The body of the request. |
| string | project | Identifies the project addressed by this request. |
| string | managedZone | Identifies the managed zone addressed by this request. Can be the managed zone name or ID. |
Returns
| Type | Description |
|---|---|
| ManagedZonesResource.UpdateRequest |