Skip to main content

git_repository_links_read_token

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

Overview

Namegit_repository_links_read_token
TypeResource
Idgoogle.developerconnect.git_repository_links_read_token

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
expirationTimestring (google-datetime)Expiration 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_read_tokenselectprojectsId, locationsId, connectionsId, gitRepositoryLinksIdFetches read token of a given gitRepositoryLink.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
connectionsIdstring
gitRepositoryLinksIdstring
locationsIdstring
projectsIdstring

SELECT examples

Fetches read token of a given gitRepositoryLink.

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