Skip to main content

issues

Creates, updates, deletes, gets or lists an issues resource.

Overview

Nameissues
TypeResource
Idgoogle.securesourcemanager.issues

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Unique identifier for an issue. The issue id is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}
bodystringOptional. Issue body. Provides a detailed description of the issue.
closeTimestring (google-datetime)Output only. Close timestamp (if closed). Cleared when is re-opened.
createTimestring (google-datetime)Output only. Creation timestamp.
etagstringOptional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
statestringOutput only. State of the issue.
titlestringRequired. Issue title.
updateTimestring (google-datetime)Output only. Last updated timestamp.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, repositoriesId, issuesIdGets an issue.
listselectprojectsId, locationsId, repositoriesIdpageSize, pageToken, filterLists issues in a repository.
createinsertprojectsId, locationsId, repositoriesIdCreates an issue.
patchupdateprojectsId, locationsId, repositoriesId, issuesIdupdateMaskUpdates a issue.
deletedeleteprojectsId, locationsId, repositoriesId, issuesIdetagDeletes an issue.
openexecprojectsId, locationsId, repositoriesId, issuesIdOpens an issue.
closeexecprojectsId, locationsId, repositoriesId, issuesIdCloses an issue.

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
issuesIdstring
locationsIdstring
projectsIdstring
repositoriesIdstring
etagstring
filterstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets an issue.

SELECT
name,
body,
closeTime,
createTime,
etag,
state,
title,
updateTime
FROM google.securesourcemanager.issues
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND issuesId = '{{ issuesId }}' -- required;

INSERT examples

Creates an issue.

INSERT INTO google.securesourcemanager.issues (
data__name,
data__title,
data__body,
data__etag,
projectsId,
locationsId,
repositoriesId
)
SELECT
'{{ name }}',
'{{ title }}',
'{{ body }}',
'{{ etag }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ repositoriesId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a issue.

UPDATE google.securesourcemanager.issues
SET
data__name = '{{ name }}',
data__title = '{{ title }}',
data__body = '{{ body }}',
data__etag = '{{ etag }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND repositoriesId = '{{ repositoriesId }}' --required
AND issuesId = '{{ issuesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes an issue.

DELETE FROM google.securesourcemanager.issues
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND repositoriesId = '{{ repositoriesId }}' --required
AND issuesId = '{{ issuesId }}' --required
AND etag = '{{ etag }}';

Lifecycle Methods

Opens an issue.

EXEC google.securesourcemanager.issues.open 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@repositoriesId='{{ repositoriesId }}' --required,
@issuesId='{{ issuesId }}' --required
@@json=
'{
"etag": "{{ etag }}"
}';