git_namespaces
Creates, updates, deletes, gets or lists a git_namespaces resource.
Overview​
| Name | git_namespaces |
| Type | Resource |
| Id | vercel.integrations.git_namespaces |
Fields​
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
id | | |
name | string | |
installation_id | number | (wire: installationId) |
is_access_restricted | boolean | (false, true) (wire: isAccessRestricted) |
owner_type | string | (wire: ownerType) |
provider | string | |
require_reauth | boolean | (false, true) (wire: requireReauth) |
slug | string | |
viewer | object |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | host, provider, viewer_metadata | Lists git namespaces for a supported provider. Supported providers are github, gitlab and bitbucket. If the provider is not provided, it will try to obtain it from the user that authenticated the request. |
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 |
|---|---|---|
host | string | The custom Git host if using a custom Git provider, like GitHub Enterprise Server |
provider | | |
viewer_metadata | boolean | When true, includes the viewer object for each namespace. (wire: viewerMetadata) |
SELECT examples​
- list
Lists git namespaces for a supported provider. Supported providers are github, gitlab and bitbucket. If the provider is not provided, it will try to obtain it from the user that authenticated the request.
SELECT
id,
name,
installation_id,
is_access_restricted,
owner_type,
provider,
require_reauth,
slug,
viewer
FROM vercel.integrations.git_namespaces
WHERE host = '{{ host }}'
AND provider = '{{ provider }}'
AND viewer_metadata = '{{ viewer_metadata }}'
;