Skip to main content

repositories_blob

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

Overview

Namerepositories_blob
TypeResource
Idgoogle.securesourcemanager.repositories_blob

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
contentstringThe content of the blob, encoded as base64.
shastringThe SHA-1 hash of the blob.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_blobselectprojectsId, locationsId, repositoriesIdshaFetches 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.

NameDatatypeDescription
locationsIdstring
projectsIdstring
repositoriesIdstring
shastring

SELECT examples

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 }}';