# Certificate Manager V1 API - Class Google::Cloud::CertificateManager::V1::DnsAuthorization (v1.5.0)

1.5.0 (latest) 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.12.0 0.11.0 0.10.1 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.2 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Certificate Manager V1 API class Google::Cloud::CertificateManager::V1::DnsAuthorization.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-certificate_manager-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The creation timestamp of a DnsAuthorization.

### #description

    def description() -> ::String

**Returns**

- (::String) --- One or more paragraphs of text description of a DnsAuthorization.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- One or more paragraphs of text description of a DnsAuthorization.
**Returns**

- (::String) --- One or more paragraphs of text description of a DnsAuthorization.

### #dns_resource_record

    def dns_resource_record() -> ::Google::Cloud::CertificateManager::V1::DnsAuthorization::DnsResourceRecord

**Returns**

- ([::Google::Cloud::CertificateManager::V1::DnsAuthorization::DnsResourceRecord](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-certificate_manager-v1/latest/Google-Cloud-CertificateManager-V1-DnsAuthorization-DnsResourceRecord)) --- Output only. DNS Resource Record that needs to be added to DNS configuration.

### #domain

    def domain() -> ::String

**Returns**

- (::String) --- 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`.

### #domain=

    def domain=(value) -> ::String

**Parameter**

- **value** (::String) --- 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**

- (::String) --- 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`.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Set of labels associated with a DnsAuthorization.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Set of labels associated with a DnsAuthorization.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Set of labels associated with a DnsAuthorization.

### #name

    def name() -> ::String

**Returns**

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

### #name=

    def name=(value) -> ::String

**Parameter**

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

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

### #type

    def type() -> ::Google::Cloud::CertificateManager::V1::DnsAuthorization::Type

**Returns**

- ([::Google::Cloud::CertificateManager::V1::DnsAuthorization::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-certificate_manager-v1/latest/Google-Cloud-CertificateManager-V1-DnsAuthorization-Type)) ---

  Immutable. Type of DnsAuthorization. If unset during resource creation the
  following default will be used:
  - in location global: FIXED_RECORD.

### #type=

    def type=(value) -> ::Google::Cloud::CertificateManager::V1::DnsAuthorization::Type

**Parameter**

- **value** ([::Google::Cloud::CertificateManager::V1::DnsAuthorization::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-certificate_manager-v1/latest/Google-Cloud-CertificateManager-V1-DnsAuthorization-Type)) ---

  Immutable. Type of DnsAuthorization. If unset during resource creation the
  following default will be used:
  - in location global: FIXED_RECORD.
**Returns**

- ([::Google::Cloud::CertificateManager::V1::DnsAuthorization::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-certificate_manager-v1/latest/Google-Cloud-CertificateManager-V1-DnsAuthorization-Type)) ---

  Immutable. Type of DnsAuthorization. If unset during resource creation the
  following default will be used:
  - in location global: FIXED_RECORD.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-certificate_manager-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The last update timestamp of a DnsAuthorization.