# Google Cloud Domains V1 Client - Class AuthorizationCode (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.5.5 0.4.2 0.3.1 0.2.11 Reference documentation and code samples for the Google Cloud Domains V1 Client class AuthorizationCode.

Defines an authorization code.

Generated from protobuf message `google.cloud.domains.v1.AuthorizationCode`

## Namespace

Google \\ Cloud \\ Domains \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ code` | `string` The Authorization Code in ASCII. It can be used to transfer the domain to or from another registrar. |

### getCode

The Authorization Code in ASCII. It can be used to transfer the domain
to or from another registrar.

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

### setCode

The Authorization Code in ASCII. It can be used to transfer the domain
to or from another registrar.

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

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