# Google Cloud Domains V1 Client - Class RetrieveAuthorizationCodeRequest (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 RetrieveAuthorizationCodeRequest.

Request for the `RetrieveAuthorizationCode` method.

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

## Namespace

Google \\ Cloud \\ Domains \\ V1

## Methods

### __construct

Constructor.

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

### getRegistration

Required. The name of the `Registration` whose authorization code is being retrieved,
in the format `projects/*/locations/*/registrations/*`.

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

### setRegistration

Required. The name of the `Registration` whose authorization code is being retrieved,
in the format `projects/*/locations/*/registrations/*`.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `registration` | `string` Required. The name of the `Registration` whose authorization code is being retrieved, in the format `projects/*/locations/*/registrations/*`. Please see DomainsClient::registrationName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.RetrieveAuthorizationCodeRequest` |   |