Skip to main content

github_installations

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

Overview

Namegithub_installations
TypeResource
Idgoogle.developerconnect.github_installations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
installationsarrayList of installations available to the OAuth user (for github.com) or all the installations (for GitHub enterprise).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetchgithub_installationsselectprojectsId, locationsId, connectionsIdFetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

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
locationsIdstring
projectsIdstring

SELECT examples

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

SELECT
installations
FROM google.developerconnect.github_installations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND connectionsId = '{{ connectionsId }}' -- required;