git_repository_links_read_token
Creates, updates, deletes, gets or lists a git_repository_links_read_token
resource.
Overview
Name | git_repository_links_read_token |
Type | Resource |
Id | google.developerconnect.git_repository_links_read_token |
Fields
The following fields are returned by SELECT
queries:
- fetch_read_token
Successful response
Name | Datatype | Description |
---|---|---|
expirationTime | string (google-datetime) | Expiration timestamp. Can be empty if unknown or non-expiring. |
gitUsername | string | The git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token" |
token | string | The token content. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
fetch_read_token | select | projectsId , locationsId , connectionsId , gitRepositoryLinksId | Fetches 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.
Name | Datatype | Description |
---|---|---|
connectionsId | string | |
gitRepositoryLinksId | string | |
locationsId | string | |
projectsId | string |
SELECT
examples
- fetch_read_token
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;