1.7.2 (latest) 1.7.1 1.6.0 1.5.0 1.4.0 1.3.1 1.2.1 1.1.3 1.0.0 0.6.5 0.5.1 0.4.4 0.3.13 Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class CreateRepositoryRequest.

The request to create a new repository.

Generated from protobuf message `google.devtools.artifactregistry.v1.CreateRepositoryRequest`

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The name of the parent resource where the repository will be created. |
| `↳ repository_id` | `string` Required. The repository id to use for this repository. |
| `↳ repository` | `https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.Repository` Required. The repository to be created. |

### getParent

Required. The name of the parent resource where the repository will be
created.

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

### setParent

Required. The name of the parent resource where the repository will be
created.

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

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

### getRepositoryId

Required. The repository id to use for this repository.

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

### setRepositoryId

Required. The repository id to use for this repository.

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

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

### getRepository

Required. The repository to be created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.Repository|null` |   |

### hasRepository

### clearRepository

### setRepository

Required. The repository to be created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.Repository` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The name of the parent resource where the repository will be created. Please see ArtifactRegistryClient::locationName() for help formatting this field. |
| `repository` | `https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.Repository` Required. The repository to be created. |
| `repositoryId` | `string` Required. The repository id to use for this repository. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.CreateRepositoryRequest` |   |