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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ parent | stringRequired. The project in which to create the repository. Values are of the form  | 
| ↳ repository | RepositoryRequired. The resource being created. | 
| ↳ repository_id | stringRequired. 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 | 
| Repository|null | |
hasRepository
clearRepository
setRepository
Required. The resource being created.
| Parameter | |
|---|---|
| Name | Description | 
| var | 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 | stringRequired. The project in which to create the repository. Values are of the
form  | 
| repository | RepositoryRequired. The resource being created. | 
| repositoryId | stringRequired. 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 | 
| CreateRepositoryRequest | |