# Google Cloud Secure Source Manager V1 Client - Class CreateRepositoryRequest (1.8.0)

1.8.0 (latest) 1.7.0 1.6.3 1.5.0 1.4.1 1.3.3 1.2.0 1.1.0 1.0.0 0.2.5 0.1.0 Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class CreateRepositoryRequest.

CreateRepositoryRequest is the request for creating a repository.

Generated from protobuf message `google.cloud.securesourcemanager.v1.CreateRepositoryRequest`

## Namespace

Google \\ Cloud \\ SecureSourceManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The project in which to create the repository. Values are of the form `projects/{project_number}/locations/{location_id}` |
| `↳ repository` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.Repository` Required. The resource being created. |
| `↳ repository_id` | `string` Required. The ID to use for the repository, which will become the final component of the repository's resource name. This value should be 4-63 characters, and valid characters are /\[a-z\]\[0-9\]-/. |

### getParent

Required. The project in which to create the repository. Values are of the
form `projects/{project_number}/locations/{location_id}`

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

### setParent

Required. The project in which to create the repository. Values are of the
form `projects/{project_number}/locations/{location_id}`

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

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

### getRepository

Required. The resource being created.

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

### hasRepository

### clearRepository

### setRepository

Required. The resource being created.

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

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

### getRepositoryId

Required. The ID to use for the repository, which will become the final
component of the repository's resource name. This value should be 4-63
characters, and valid characters are /\[a-z\]\[0-9\]-/.

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

### setRepositoryId

Required. The ID to use for the repository, which will become the final
component of the repository's resource name. This value should be 4-63
characters, and valid characters are /\[a-z\]\[0-9\]-/.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The project in which to create the repository. Values are of the form `projects/{project_number}/locations/{location_id}` Please see SecureSourceManagerClient::locationName() for help formatting this field. |
| `repository` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.Repository` Required. The resource being created. |
| `repositoryId` | `string` Required. The ID to use for the repository, which will become the final component of the repository's resource name. This value should be 4-63 characters, and valid characters are /\[a-z\]\[0-9\]-/. |

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