# Secure Source Manager V1 API - Class Google::Cloud::SecureSourceManager::V1::CreateRepositoryRequest (v2.7.0)

2.7.0 (latest) 2.6.1 2.5.0 2.4.0 2.3.0 2.2.1 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.4.0 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Secure Source Manager V1 API class Google::Cloud::SecureSourceManager::V1::CreateRepositoryRequest.

CreateRepositoryRequest is the request for creating a repository.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #parent

    def parent() -> ::String

**Returns**

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

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The project in which to create the repository. Values are of the form `projects/{project_number}/locations/{location_id}`
**Returns**

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

### #repository

    def repository() -> ::Google::Cloud::SecureSourceManager::V1::Repository

**Returns**

- ([::Google::Cloud::SecureSourceManager::V1::Repository](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-Repository)) --- Required. The resource being created.

### #repository=

    def repository=(value) -> ::Google::Cloud::SecureSourceManager::V1::Repository

**Parameter**

- **value** ([::Google::Cloud::SecureSourceManager::V1::Repository](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-Repository)) --- Required. The resource being created.
**Returns**

- ([::Google::Cloud::SecureSourceManager::V1::Repository](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-Repository)) --- Required. The resource being created.

### #repository_id

    def repository_id() -> ::String

**Returns**

- (::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\]-/.

### #repository_id=

    def repository_id=(value) -> ::String

**Parameter**

- **value** (::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**

- (::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\]-/.