# Google Cloud Public Certificate Authority V1 Client - Class CreateExternalAccountKeyRequest (1.2.0)

1.2.0 (latest) 1.1.2 1.0.5 0.4.1 0.3.4 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Public Certificate Authority V1 Client class CreateExternalAccountKeyRequest.

Creates a new
[ExternalAccountKey](https://docs.cloud.google.com/php/docs/reference/cloud-security-public-ca/latest/V1.ExternalAccountKey) in
a given project.

Generated from protobuf message `google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest`

## Namespace

Google \\ Cloud \\ Security \\ PublicCA \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource where this external_account_key will be created. Format: projects/\[project_id\]/locations/\[location\]. At present only the "global" location is supported. |
| `↳ external_account_key` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-public-ca/latest/V1.ExternalAccountKey` Required. The external account key to create. This field only exists to future-proof the API. At present, all fields in ExternalAccountKey are output only and all values are ignored. For the purpose of the CreateExternalAccountKeyRequest, set it to a default/empty value. |

### getParent

Required. The parent resource where this external_account_key will be
created. Format: projects/\[project_id\]/locations/\[location\]. At present
only the "global" location is supported.

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

### setParent

Required. The parent resource where this external_account_key will be
created. Format: projects/\[project_id\]/locations/\[location\]. At present
only the "global" location is supported.

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

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

### getExternalAccountKey

Required. The external account key to create. This field only exists to
future-proof the API. At present, all fields in ExternalAccountKey are
output only and all values are ignored. For the purpose of the
CreateExternalAccountKeyRequest, set it to a default/empty value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-public-ca/latest/V1.ExternalAccountKey|null` |   |

### hasExternalAccountKey

### clearExternalAccountKey

### setExternalAccountKey

Required. The external account key to create. This field only exists to
future-proof the API. At present, all fields in ExternalAccountKey are
output only and all values are ignored. For the purpose of the
CreateExternalAccountKeyRequest, set it to a default/empty value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-public-ca/latest/V1.ExternalAccountKey` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource where this external_account_key will be created. Format: projects/\[project_id\]/locations/\[location\]. At present only the "global" location is supported. Please see PublicCertificateAuthorityServiceClient::locationName() for help formatting this field. |
| `externalAccountKey` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-public-ca/latest/V1.ExternalAccountKey` Required. The external account key to create. This field only exists to future-proof the API. At present, all fields in ExternalAccountKey are output only and all values are ignored. For the purpose of the CreateExternalAccountKeyRequest, set it to a default/empty value. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-public-ca/latest/V1.CreateExternalAccountKeyRequest` |   |