Creates a repo in the given project with the given name.
If the named repository already exists, repos.create
returns ALREADY_EXISTS
.
HTTP request
POST https://sourcerepo.googleapis.com/v1/{parent=projects/*}/repos
The URL uses gRPC Transcoding syntax.
Path parameters
parent
string
The project in which to create the repo. Values are of the form projects/<project>
.
Authorization requires the following IAM
permission on the specified resource parent
:
-
source.repos.create
Request body
The request body contains an instance of Repo
.
Response body
If successful, the response body contains a newly created instance of Repo
.
Authorization scopes
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .

