repositories_blob
Creates, updates, deletes, gets or lists a repositories_blob
resource.
Overview
Name | repositories_blob |
Type | Resource |
Id | google.securesourcemanager.repositories_blob |
Fields
The following fields are returned by SELECT
queries:
- fetch_blob
Successful response
Name | Datatype | Description |
---|---|---|
content | string | The content of the blob, encoded as base64. |
sha | string | The SHA-1 hash of the blob. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
fetch_blob | select | projectsId , locationsId , repositoriesId | sha | Fetches a blob from a repository. |
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 |
---|---|---|
locationsId | string | |
projectsId | string | |
repositoriesId | string | |
sha | string |
SELECT
examples
- fetch_blob
Fetches a blob from a repository.
SELECT
content,
sha
FROM google.securesourcemanager.repositories_blob
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND sha = '{{ sha }}';