git_repository_links
Creates, updates, deletes, gets or lists a git_repository_links
resource.
Overview
Name | git_repository_links |
Type | Resource |
Id | google.developerconnect.git_repository_links |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Resource name of the repository, in the format projects/*/locations/*/connections/*/gitRepositoryLinks/* . |
annotations | object | Optional. Allows clients to store small amounts of arbitrary data. |
cloneUri | string | Required. Git Clone URI. |
createTime | string | Output only. [Output only] Create timestamp |
deleteTime | string | Output only. [Output only] Delete timestamp |
etag | string | 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. |
labels | object | Optional. Labels as key value pairs |
reconciling | boolean | Output only. Set to true when the connection is being set up or updated in the background. |
uid | string | Output only. A system-assigned unique identifier for a the GitRepositoryLink. |
updateTime | string | Output only. [Output only] Update timestamp |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | connectionsId, gitRepositoryLinksId, locationsId, projectsId | Gets details of a single GitRepositoryLink. |
list | SELECT | connectionsId, locationsId, projectsId | Lists GitRepositoryLinks in a given project, location, and connection. |
create | INSERT | connectionsId, locationsId, projectsId | 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. All other Connections will have events forwarded to Cloud Build. |
delete | DELETE | connectionsId, gitRepositoryLinksId, locationsId, projectsId | Deletes a single GitRepositoryLink. |
SELECT
examples
Lists GitRepositoryLinks in a given project, location, and connection.
SELECT
name,
annotations,
cloneUri,
createTime,
deleteTime,
etag,
labels,
reconciling,
uid,
updateTime
FROM google.developerconnect.git_repository_links
WHERE connectionsId = '{{ connectionsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new git_repository_links
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.developerconnect.git_repository_links (
connectionsId,
locationsId,
projectsId,
name,
cloneUri,
labels,
etag,
annotations
)
SELECT
'{{ connectionsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ cloneUri }}',
'{{ labels }}',
'{{ etag }}',
'{{ annotations }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: cloneUri
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: deleteTime
value: string
- name: labels
value: object
- name: etag
value: string
- name: reconciling
value: boolean
- name: annotations
value: object
- name: uid
value: string
DELETE
example
Deletes the specified git_repository_links
resource.
/*+ delete */
DELETE FROM google.developerconnect.git_repository_links
WHERE connectionsId = '{{ connectionsId }}'
AND gitRepositoryLinksId = '{{ gitRepositoryLinksId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';