Skip to main content

pull_requests_file_diffs

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

Overview

Namepull_requests_file_diffs
TypeResource
Idgoogle.securesourcemanager.pull_requests_file_diffs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. The name of the file.
actionstringOutput only. The action taken on the file (eg. added, modified, deleted). (ACTION_UNSPECIFIED, ADDED, MODIFIED, DELETED)
patchstringOutput only. The git patch containing the file changes.
shastringOutput only. The commit pointing to the file changes.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_file_diffsselectprojectsId, locationsId, repositoriesId, pullRequestsIdpageSize, pageTokenLists a pull request's file diffs.

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
pullRequestsIdstring
repositoriesIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Lists a pull request's file diffs.

SELECT
name,
action,
patch,
sha
FROM google.securesourcemanager.pull_requests_file_diffs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND pullRequestsId = '{{ pullRequestsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;