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
Parameters | |
---|---|
parent |
The project in which to create the repo. Values are of the form Authorization requires the following IAM permission on the specified resource
|
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.