v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-133271103.9 KB
projects

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. Connections that use Gemini Code Assist will have events forwarded to Gemini Code Assist service. All other Connections will have events forwarded to Cloud Build.

post/v1/{+parent}/gitRepositoryLinks

Path parameters

parentstring required

Required. Value for parent.

Query parameters

gitRepositoryLinkIdstring

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

requestIdstring

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

validateOnlyboolean

Optional. If set, validate the request, but do not actually post it.

Request body

deleteTimestring google-datetime

Output only. [Output only] Delete timestamp

webhookIdstring

Output only. External ID of the webhook created for the repository.

updateTimestring google-datetime

Output only. [Output only] Update timestamp

etagstring

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

labelsobject

Optional. Labels as key value pairs

uidstring

Output only. A system-assigned unique identifier for the GitRepositoryLink.

namestring

Identifier. Resource name of the repository, in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

cloneUristring

Required. Git Clone URI.

annotationsobject

Optional. Allows clients to store small amounts of arbitrary data.

gitProxyUristring

Output only. URI to access the linked repository through the Git Proxy. This field is only populated if the git proxy is enabled for the connection.

reconcilingboolean

Output only. Set to true when the connection is being set up or updated in the background.

createTimestring google-datetime

Output only. [Output only] Create timestamp

Response

Successful response