Skip to main content

issue_comments

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

Overview

Nameissue_comments
TypeResource
Idgoogle.securesourcemanager.issue_comments

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Unique identifier for an issue comment. The comment id is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/issues/{issue}/issueComments/{comment_id}
bodystringRequired. The comment body.
createTimestring (google-datetime)Output only. Creation timestamp.
updateTimestring (google-datetime)Output only. Last updated timestamp.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, repositoriesId, issuesId, issueCommentsIdGets an issue comment.
listselectprojectsId, locationsId, repositoriesId, issuesIdpageSize, pageTokenLists comments in an issue.
createinsertprojectsId, locationsId, repositoriesId, issuesIdCreates an issue comment.
patchupdateprojectsId, locationsId, repositoriesId, issuesId, issueCommentsIdupdateMaskUpdates an issue comment.
deletedeleteprojectsId, locationsId, repositoriesId, issuesId, issueCommentsIdDeletes an issue comment.

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

SELECT examples

Gets an issue comment.

SELECT
name,
body,
createTime,
updateTime
FROM google.securesourcemanager.issue_comments
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND issuesId = '{{ issuesId }}' -- required
AND issueCommentsId = '{{ issueCommentsId }}' -- required;

INSERT examples

Creates an issue comment.

INSERT INTO google.securesourcemanager.issue_comments (
data__name,
data__body,
projectsId,
locationsId,
repositoriesId,
issuesId
)
SELECT
'{{ name }}',
'{{ body }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ repositoriesId }}',
'{{ issuesId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates an issue comment.

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

DELETE examples

Deletes an issue comment.

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