Debian Codegraph @

docs/dyn/securesourcemanager_v1.projects.locations.repositories.pullRequests.pullRequestComments.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="securesourcemanager_v1.html">Secure Source Manager API</a> . <a href="securesourcemanager_v1.projects.html">projects</a> . <a href="securesourcemanager_v1.projects.locations.html">locations</a> . <a href="securesourcemanager_v1.projects.locations.repositories.html">repositories</a> . <a href="securesourcemanager_v1.projects.locations.repositories.pullRequests.html">pullRequests</a> . <a href="securesourcemanager_v1.projects.locations.repositories.pullRequests.pullRequestComments.html">pullRequestComments</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#batchCreate">batchCreate(parent, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Batch creates pull request comments.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <p class="toc_element">
84 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Creates a pull request comment.</p>
86 <p class="toc_element">
87 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Deletes a pull request comment.</p>
89 <p class="toc_element">
90 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
91 <p class="firstline">Gets a pull request comment.</p>
92 <p class="toc_element">
93 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Lists pull request comments.</p>
95 <p class="toc_element">
96 <code><a href="#list_next">list_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <p class="toc_element">
99 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Updates a pull request comment.</p>
101 <p class="toc_element">
102 <code><a href="#resolve">resolve(parent, body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Resolves pull request comments.</p>
104 <p class="toc_element">
105 <code><a href="#unresolve">unresolve(parent, body=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Unresolves pull request comment.</p>
107 <h3>Method Details</h3>
108 <div class="method">
109 <code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code>
110 <pre>Batch creates pull request comments.
111
112 Args:
113 parent: string, Required. The pull request in which to create the pull request comments. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}` (required)
114 body: object, The request body.
115 The object takes the form of:
116
117 { # The request to batch create pull request comments.
118 &quot;requests&quot;: [ # Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list
119 { # The request to create a pull request comment.
120 &quot;parent&quot;: &quot;A String&quot;, # Required. The pull request in which to create the pull request comment. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
121 &quot;pullRequestComment&quot;: { # PullRequestComment represents a comment on a pull request. # Required. The pull request comment to create.
122 &quot;code&quot;: { # The comment on a code line. # Optional. The comment on a code line.
123 &quot;body&quot;: &quot;A String&quot;, # Required. The comment body.
124 &quot;effectiveCommitSha&quot;: &quot;A String&quot;, # Output only. The effective commit sha this code comment is pointing to.
125 &quot;effectiveRootComment&quot;: &quot;A String&quot;, # Output only. The root comment of the conversation, derived from the reply field.
126 &quot;position&quot;: { # The position of the code comment. # Optional. The position of the comment.
127 &quot;line&quot;: &quot;A String&quot;, # Required. The line number of the comment. Positive value means it&#x27;s on the new side of the diff, negative value means it&#x27;s on the old side.
128 &quot;path&quot;: &quot;A String&quot;, # Required. The path of the file.
129 },
130 &quot;reply&quot;: &quot;A String&quot;, # Optional. Input only. The PullRequestComment resource name that this comment is replying to.
131 &quot;resolved&quot;: True or False, # Output only. Boolean indicator if the comment is resolved.
132 },
133 &quot;comment&quot;: { # The general pull request comment. # Optional. The general pull request comment.
134 &quot;body&quot;: &quot;A String&quot;, # Required. The comment body.
135 },
136 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
137 &quot;name&quot;: &quot;A String&quot;, # Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`
138 &quot;review&quot;: { # The review summary comment. # Optional. The review summary comment.
139 &quot;actionType&quot;: &quot;A String&quot;, # Required. The review action type.
140 &quot;body&quot;: &quot;A String&quot;, # Optional. The comment body.
141 &quot;effectiveCommitSha&quot;: &quot;A String&quot;, # Output only. The effective commit sha this review is pointing to.
142 },
143 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last updated timestamp.
144 },
145 },
146 ],
147 }
148
149 x__xgafv: string, V1 error format.
150 Allowed values
151 1 - v1 error format
152 2 - v2 error format
153
154 Returns:
155 An object of the form:
156
157 { # This resource represents a long-running operation that is the result of a network API call.
158 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
159 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
160 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
161 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
162 {
163 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
164 },
165 ],
166 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
167 },
168 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
169 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
170 },
171 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
172 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
173 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
174 },
175 }</pre>
176 </div>
177
178 <div class="method">
179 <code class="details" id="close">close()</code>
180 <pre>Close httplib2 connections.</pre>
181 </div>
182
183 <div class="method">
184 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
185 <pre>Creates a pull request comment.
186
187 Args:
188 parent: string, Required. The pull request in which to create the pull request comment. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}` (required)
189 body: object, The request body.
190 The object takes the form of:
191
192 { # PullRequestComment represents a comment on a pull request.
193 &quot;code&quot;: { # The comment on a code line. # Optional. The comment on a code line.
194 &quot;body&quot;: &quot;A String&quot;, # Required. The comment body.
195 &quot;effectiveCommitSha&quot;: &quot;A String&quot;, # Output only. The effective commit sha this code comment is pointing to.
196 &quot;effectiveRootComment&quot;: &quot;A String&quot;, # Output only. The root comment of the conversation, derived from the reply field.
197 &quot;position&quot;: { # The position of the code comment. # Optional. The position of the comment.
198 &quot;line&quot;: &quot;A String&quot;, # Required. The line number of the comment. Positive value means it&#x27;s on the new side of the diff, negative value means it&#x27;s on the old side.
199 &quot;path&quot;: &quot;A String&quot;, # Required. The path of the file.
200 },
201 &quot;reply&quot;: &quot;A String&quot;, # Optional. Input only. The PullRequestComment resource name that this comment is replying to.
202 &quot;resolved&quot;: True or False, # Output only. Boolean indicator if the comment is resolved.
203 },
204 &quot;comment&quot;: { # The general pull request comment. # Optional. The general pull request comment.
205 &quot;body&quot;: &quot;A String&quot;, # Required. The comment body.
206 },
207 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
208 &quot;name&quot;: &quot;A String&quot;, # Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`
209 &quot;review&quot;: { # The review summary comment. # Optional. The review summary comment.
210 &quot;actionType&quot;: &quot;A String&quot;, # Required. The review action type.
211 &quot;body&quot;: &quot;A String&quot;, # Optional. The comment body.
212 &quot;effectiveCommitSha&quot;: &quot;A String&quot;, # Output only. The effective commit sha this review is pointing to.
213 },
214 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last updated timestamp.
215 }
216
217 x__xgafv: string, V1 error format.
218 Allowed values
219 1 - v1 error format
220 2 - v2 error format
221
222 Returns:
223 An object of the form:
224
225 { # This resource represents a long-running operation that is the result of a network API call.
226 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
227 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
228 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
229 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
230 {
231 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
232 },
233 ],
234 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
235 },
236 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
237 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
238 },
239 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
240 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
241 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
242 },
243 }</pre>
244 </div>
245
246 <div class="method">
247 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
248 <pre>Deletes a pull request comment.
249
250 Args:
251 name: string, Required. Name of the pull request comment to delete. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}`. (required)
252 x__xgafv: string, V1 error format.
253 Allowed values
254 1 - v1 error format
255 2 - v2 error format
256
257 Returns:
258 An object of the form:
259
260 { # This resource represents a long-running operation that is the result of a network API call.
261 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
262 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
263 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
264 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
265 {
266 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
267 },
268 ],
269 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
270 },
271 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
272 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
273 },
274 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
275 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
276 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
277 },
278 }</pre>
279 </div>
280
281 <div class="method">
282 <code class="details" id="get">get(name, x__xgafv=None)</code>
283 <pre>Gets a pull request comment.
284
285 Args:
286 name: string, Required. Name of the pull request comment to retrieve. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}`. (required)
287 x__xgafv: string, V1 error format.
288 Allowed values
289 1 - v1 error format
290 2 - v2 error format
291
292 Returns:
293 An object of the form:
294
295 { # PullRequestComment represents a comment on a pull request.
296 &quot;code&quot;: { # The comment on a code line. # Optional. The comment on a code line.
297 &quot;body&quot;: &quot;A String&quot;, # Required. The comment body.
298 &quot;effectiveCommitSha&quot;: &quot;A String&quot;, # Output only. The effective commit sha this code comment is pointing to.
299 &quot;effectiveRootComment&quot;: &quot;A String&quot;, # Output only. The root comment of the conversation, derived from the reply field.
300 &quot;position&quot;: { # The position of the code comment. # Optional. The position of the comment.
301 &quot;line&quot;: &quot;A String&quot;, # Required. The line number of the comment. Positive value means it&#x27;s on the new side of the diff, negative value means it&#x27;s on the old side.
302 &quot;path&quot;: &quot;A String&quot;, # Required. The path of the file.
303 },
304 &quot;reply&quot;: &quot;A String&quot;, # Optional. Input only. The PullRequestComment resource name that this comment is replying to.
305 &quot;resolved&quot;: True or False, # Output only. Boolean indicator if the comment is resolved.
306 },
307 &quot;comment&quot;: { # The general pull request comment. # Optional. The general pull request comment.
308 &quot;body&quot;: &quot;A String&quot;, # Required. The comment body.
309 },
310 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
311 &quot;name&quot;: &quot;A String&quot;, # Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`
312 &quot;review&quot;: { # The review summary comment. # Optional. The review summary comment.
313 &quot;actionType&quot;: &quot;A String&quot;, # Required. The review action type.
314 &quot;body&quot;: &quot;A String&quot;, # Optional. The comment body.
315 &quot;effectiveCommitSha&quot;: &quot;A String&quot;, # Output only. The effective commit sha this review is pointing to.
316 },
317 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last updated timestamp.
318 }</pre>
319 </div>
320
321 <div class="method">
322 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
323 <pre>Lists pull request comments.
324
325 Args:
326 parent: string, Required. The pull request in which to list pull request comments. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}` (required)
327 pageSize: integer, Optional. Requested page size. If unspecified, at most 100 pull request comments will be returned. The maximum value is 100; values above 100 will be coerced to 100.
328 pageToken: string, Optional. A token identifying a page of results the server should return.
329 x__xgafv: string, V1 error format.
330 Allowed values
331 1 - v1 error format
332 2 - v2 error format
333
334 Returns:
335 An object of the form:
336
337 { # The response to list pull request comments.
338 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to set as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
339 &quot;pullRequestComments&quot;: [ # The list of pull request comments.
340 { # PullRequestComment represents a comment on a pull request.
341 &quot;code&quot;: { # The comment on a code line. # Optional. The comment on a code line.
342 &quot;body&quot;: &quot;A String&quot;, # Required. The comment body.
343 &quot;effectiveCommitSha&quot;: &quot;A String&quot;, # Output only. The effective commit sha this code comment is pointing to.
344 &quot;effectiveRootComment&quot;: &quot;A String&quot;, # Output only. The root comment of the conversation, derived from the reply field.
345 &quot;position&quot;: { # The position of the code comment. # Optional. The position of the comment.
346 &quot;line&quot;: &quot;A String&quot;, # Required. The line number of the comment. Positive value means it&#x27;s on the new side of the diff, negative value means it&#x27;s on the old side.
347 &quot;path&quot;: &quot;A String&quot;, # Required. The path of the file.
348 },
349 &quot;reply&quot;: &quot;A String&quot;, # Optional. Input only. The PullRequestComment resource name that this comment is replying to.
350 &quot;resolved&quot;: True or False, # Output only. Boolean indicator if the comment is resolved.
351 },
352 &quot;comment&quot;: { # The general pull request comment. # Optional. The general pull request comment.
353 &quot;body&quot;: &quot;A String&quot;, # Required. The comment body.
354 },
355 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
356 &quot;name&quot;: &quot;A String&quot;, # Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`
357 &quot;review&quot;: { # The review summary comment. # Optional. The review summary comment.
358 &quot;actionType&quot;: &quot;A String&quot;, # Required. The review action type.
359 &quot;body&quot;: &quot;A String&quot;, # Optional. The comment body.
360 &quot;effectiveCommitSha&quot;: &quot;A String&quot;, # Output only. The effective commit sha this review is pointing to.
361 },
362 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last updated timestamp.
363 },
364 ],
365 }</pre>
366 </div>
367
368 <div class="method">
369 <code class="details" id="list_next">list_next()</code>
370 <pre>Retrieves the next page of results.
371
372 Args:
373 previous_request: The request for the previous page. (required)
374 previous_response: The response from the request for the previous page. (required)
375
376 Returns:
377 A request object that you can call &#x27;execute()&#x27; on to request the next
378 page. Returns None if there are no more items in the collection.
379 </pre>
380 </div>
381
382 <div class="method">
383 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
384 <pre>Updates a pull request comment.
385
386 Args:
387 name: string, Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}` (required)
388 body: object, The request body.
389 The object takes the form of:
390
391 { # PullRequestComment represents a comment on a pull request.
392 &quot;code&quot;: { # The comment on a code line. # Optional. The comment on a code line.
393 &quot;body&quot;: &quot;A String&quot;, # Required. The comment body.
394 &quot;effectiveCommitSha&quot;: &quot;A String&quot;, # Output only. The effective commit sha this code comment is pointing to.
395 &quot;effectiveRootComment&quot;: &quot;A String&quot;, # Output only. The root comment of the conversation, derived from the reply field.
396 &quot;position&quot;: { # The position of the code comment. # Optional. The position of the comment.
397 &quot;line&quot;: &quot;A String&quot;, # Required. The line number of the comment. Positive value means it&#x27;s on the new side of the diff, negative value means it&#x27;s on the old side.
398 &quot;path&quot;: &quot;A String&quot;, # Required. The path of the file.
399 },
400 &quot;reply&quot;: &quot;A String&quot;, # Optional. Input only. The PullRequestComment resource name that this comment is replying to.
401 &quot;resolved&quot;: True or False, # Output only. Boolean indicator if the comment is resolved.
402 },
403 &quot;comment&quot;: { # The general pull request comment. # Optional. The general pull request comment.
404 &quot;body&quot;: &quot;A String&quot;, # Required. The comment body.
405 },
406 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
407 &quot;name&quot;: &quot;A String&quot;, # Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`
408 &quot;review&quot;: { # The review summary comment. # Optional. The review summary comment.
409 &quot;actionType&quot;: &quot;A String&quot;, # Required. The review action type.
410 &quot;body&quot;: &quot;A String&quot;, # Optional. The comment body.
411 &quot;effectiveCommitSha&quot;: &quot;A String&quot;, # Output only. The effective commit sha this review is pointing to.
412 },
413 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last updated timestamp.
414 }
415
416 updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the pull request comment resource by the update. Updatable fields are `body`.
417 x__xgafv: string, V1 error format.
418 Allowed values
419 1 - v1 error format
420 2 - v2 error format
421
422 Returns:
423 An object of the form:
424
425 { # This resource represents a long-running operation that is the result of a network API call.
426 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
427 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
428 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
429 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
430 {
431 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
432 },
433 ],
434 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
435 },
436 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
437 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
438 },
439 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
440 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
441 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
442 },
443 }</pre>
444 </div>
445
446 <div class="method">
447 <code class="details" id="resolve">resolve(parent, body=None, x__xgafv=None)</code>
448 <pre>Resolves pull request comments.
449
450 Args:
451 parent: string, Required. The pull request in which to resolve the pull request comments. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}` (required)
452 body: object, The request body.
453 The object takes the form of:
454
455 { # The request to resolve multiple pull request comments.
456 &quot;autoFill&quot;: True or False, # Optional. If set, at least one comment in a thread is required, rest of the comments in the same thread will be automatically updated to resolved. If unset, all comments in the same thread need be present.
457 &quot;names&quot;: [ # Required. The names of the pull request comments to resolve. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}` Only comments from the same threads are allowed in the same request.
458 &quot;A String&quot;,
459 ],
460 }
461
462 x__xgafv: string, V1 error format.
463 Allowed values
464 1 - v1 error format
465 2 - v2 error format
466
467 Returns:
468 An object of the form:
469
470 { # This resource represents a long-running operation that is the result of a network API call.
471 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
472 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
473 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
474 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
475 {
476 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
477 },
478 ],
479 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
480 },
481 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
482 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
483 },
484 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
485 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
486 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
487 },
488 }</pre>
489 </div>
490
491 <div class="method">
492 <code class="details" id="unresolve">unresolve(parent, body=None, x__xgafv=None)</code>
493 <pre>Unresolves pull request comment.
494
495 Args:
496 parent: string, Required. The pull request in which to resolve the pull request comments. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}` (required)
497 body: object, The request body.
498 The object takes the form of:
499
500 { # The request to unresolve multiple pull request comments.
501 &quot;autoFill&quot;: True or False, # Optional. If set, at least one comment in a thread is required, rest of the comments in the same thread will be automatically updated to unresolved. If unset, all comments in the same thread need be present.
502 &quot;names&quot;: [ # Required. The names of the pull request comments to unresolve. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}` Only comments from the same threads are allowed in the same request.
503 &quot;A String&quot;,
504 ],
505 }
506
507 x__xgafv: string, V1 error format.
508 Allowed values
509 1 - v1 error format
510 2 - v2 error format
511
512 Returns:
513 An object of the form:
514
515 { # This resource represents a long-running operation that is the result of a network API call.
516 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
517 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
518 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
519 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
520 {
521 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
522 },
523 ],
524 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
525 },
526 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
527 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
528 },
529 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
530 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
531 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
532 },
533 }</pre>
534 </div>
535
536 </body></html>