- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- CreateGitLabConnectedRepositoryRequest
- GitLabConnectedRepository
- Try it!
Batch connecting GitLab repositories to Cloud Build.
This API is experimental.
HTTP request
POST https://cloudbuild.googleapis.com/v1/{parent=projects/*/locations/*/gitLabConfigs/*}/connectedRepositories:batchCreate
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
The name of the |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requests": [
{
object ( |
Fields | |
---|---|
requests[] |
Required. Requests to connect GitLab repositories. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
CreateGitLabConnectedRepositoryRequest
Request to connect a repository from a connected GitLab host.
JSON representation |
---|
{
"parent": string,
"gitlabConnectedRepository": {
object ( |
Fields | |
---|---|
parent |
Required. The name of the |
gitlabConnectedRepository |
Required. The GitLab repository to connect. |
GitLabConnectedRepository
GitLabConnectedRepository represents a GitLab connected repository request response.
JSON representation |
---|
{ "parent": string, "repo": { object ( |
Fields | |
---|---|
parent |
The name of the |
repo |
The GitLab repositories to connect. |
status |
Output only. The status of the repo connection request. |