<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.9.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorization)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/2.8.0/Google.Cloud.CertificateManager.V1.DnsAuthorization)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/2.7.0/Google.Cloud.CertificateManager.V1.DnsAuthorization)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/2.6.0/Google.Cloud.CertificateManager.V1.DnsAuthorization)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/2.5.0/Google.Cloud.CertificateManager.V1.DnsAuthorization)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/2.4.0/Google.Cloud.CertificateManager.V1.DnsAuthorization)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/2.3.0/Google.Cloud.CertificateManager.V1.DnsAuthorization)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/2.2.0/Google.Cloud.CertificateManager.V1.DnsAuthorization)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/2.1.0/Google.Cloud.CertificateManager.V1.DnsAuthorization)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/2.0.0/Google.Cloud.CertificateManager.V1.DnsAuthorization)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/1.0.0-beta02/Google.Cloud.CertificateManager.V1.DnsAuthorization)

    public sealed class DnsAuthorization : IMessage<DnsAuthorization>, IEquatable<DnsAuthorization>, IDeepCloneable<DnsAuthorization>, IBufferMessage, IMessage

Reference documentation and code samples for the Certificate Manager v1 API class DnsAuthorization.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DnsAuthorization

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DnsAuthorization](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorization), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DnsAuthorization](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorization), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DnsAuthorization](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorization), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.CertificateManager.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1)

## Assembly

Google.Cloud.CertificateManager.V1.dll

## Constructors

### DnsAuthorization()

    public DnsAuthorization()

### DnsAuthorization(DnsAuthorization)

    public DnsAuthorization(DnsAuthorization other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorization` |

## Properties

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The creation timestamp of a DnsAuthorization.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Description

    public string Description { get; set; }

Optional. One or more paragraphs of text description of a DnsAuthorization.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DnsAuthorizationName

    public DnsAuthorizationName DnsAuthorizationName { get; set; }

[DnsAuthorizationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorizationName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorization#Google_Cloud_CertificateManager_V1_DnsAuthorization_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorizationName` |   |

### DnsResourceRecord

    public DnsAuthorization.Types.DnsResourceRecord DnsResourceRecord { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorizationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorization.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorization.Types.DnsResourceRecord` |   |

### Domain

    public string Domain { get; set; }

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`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Labels

    public MapField<string, string> Labels { get; }

Optional. Set of labels associated with a DnsAuthorization.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Name

    public string Name { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Tags

    public MapField<string, string> Tags { get; }

Optional. Input only. Immutable. Tag keys/values directly bound to this
resource. For example:
"123/environment": "production",
"123/costCenter": "marketing"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Type

    public DnsAuthorization.Types.Type Type { get; set; }

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

- in location `global`: FIXED_RECORD,
- in other locations: PER_PROJECT_RECORD.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorizationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorization.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CertificateManager.V1/latest/Google.Cloud.CertificateManager.V1.DnsAuthorization.Types.Type` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The last update timestamp of a DnsAuthorization.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |