# Google Cloud Certificate Manager V1 Client - Class DnsAuthorization (1.1.2)

1.1.2 (latest) 1.1.1 1.0.4 0.7.3 0.6.0 0.5.2 0.4.2 0.3.7 Reference documentation and code samples for the Google Cloud Certificate Manager V1 Client class DnsAuthorization.

A DnsAuthorization resource describes a way to perform domain authorization
for certificate issuance.

Generated from protobuf message `google.cloud.certificatemanager.v1.DnsAuthorization`

## Namespace

Google \\ Cloud \\ CertificateManager \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

A user-defined name of the dns authorization. DnsAuthorization names must
be unique globally and match pattern
`projects/*/locations/*/dnsAuthorizations/*`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

A user-defined name of the dns authorization. DnsAuthorization names must
be unique globally and match pattern
`projects/*/locations/*/dnsAuthorizations/*`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Output only. The creation timestamp of a DnsAuthorization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The creation timestamp of a DnsAuthorization.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUpdateTime

Output only. The last update timestamp of a DnsAuthorization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The last update timestamp of a DnsAuthorization.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabels

Set of labels associated with a DnsAuthorization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Set of labels associated with a DnsAuthorization.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

One or more paragraphs of text description of a DnsAuthorization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDescription

One or more paragraphs of text description of a DnsAuthorization.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDomain

Required. Immutable. A domain that is being authorized. A DnsAuthorization
resource covers a single domain and its wildcard, e.g. authorization for
`example.com` can be used to issue certificates for `example.com` and
`*.example.com`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDomain

Required. Immutable. A domain that is being authorized. A DnsAuthorization
resource covers a single domain and its wildcard, e.g. authorization for
`example.com` can be used to issue certificates for `example.com` and
`*.example.com`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDnsResourceRecord

Output only. DNS Resource Record that needs to be added to DNS
configuration.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.DnsAuthorization.DnsResourceRecord|null` |   |

### hasDnsResourceRecord

### clearDnsResourceRecord

### setDnsResourceRecord

Output only. DNS Resource Record that needs to be added to DNS
configuration.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.DnsAuthorization.DnsResourceRecord` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getType

Immutable. Type of DnsAuthorization. If unset during resource creation the
following default will be used:

- in location global: FIXED_RECORD.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.DnsAuthorization.Type). |

### setType

Immutable. Type of DnsAuthorization. If unset during resource creation the
following default will be used:

- in location global: FIXED_RECORD.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.DnsAuthorization.Type). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |