Skip to main content

git_repository_links_read_write_token

Creates, updates, deletes, gets or lists a git_repository_links_read_write_token resource.

Overview

Namegit_repository_links_read_write_token
TypeResource
Idgoogle.developerconnect.git_repository_links_read_write_token

Fields

NameDatatypeDescription
expirationTimestringExpiration timestamp. Can be empty if unknown or non-expiring.
gitUsernamestringThe git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token"
tokenstringThe token content.

Methods

NameAccessible byRequired ParamsDescription
fetch_read_write_tokenSELECTconnectionsId, gitRepositoryLinksId, locationsId, projectsIdFetches read/write token of a given gitRepositoryLink.

SELECT examples

Fetches read/write token of a given gitRepositoryLink.

SELECT
expirationTime,
gitUsername,
token
FROM google.developerconnect.git_repository_links_read_write_token
WHERE connectionsId = '{{ connectionsId }}'
AND gitRepositoryLinksId = '{{ gitRepositoryLinksId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';