Method: projects.locations.gitLabConfigs.connectedRepositories.batchCreate

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

string

The name of the GitLabConfig that adds connected repositories. Format: projects/{project}/locations/{location}/gitLabConfigs/{config}

Request body

The request body contains data with the following structure:

JSON representation
{
  "requests": [
    {
      object (CreateGitLabConnectedRepositoryRequest)
    }
  ]
}
Fields
requests[]

object (CreateGitLabConnectedRepositoryRequest)

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 (GitLabConnectedRepository)
  }
}
Fields
parent

string

Required. The name of the GitLabConfig that adds connected repository. Format: projects/{project}/locations/{location}/gitLabConfigs/{config}

gitlabConnectedRepository

object (GitLabConnectedRepository)

Required. The GitLab repository to connect.

GitLabConnectedRepository

GitLabConnectedRepository represents a GitLab connected repository request response.

JSON representation
{
  "parent": string,
  "repo": {
    object (GitLabRepositoryId)
  },
  "status": {
    object (Status)
  }
}
Fields
parent

string

The name of the GitLabConfig that added connected repository. Format: projects/{project}/locations/{location}/gitLabConfigs/{config}

repo

object (GitLabRepositoryId)

The GitLab repositories to connect.

status

object (Status)

Output only. The status of the repo connection request.