Debian Codegraph @

docs/dyn/securesourcemanager_v1.projects.locations.repositories.pullRequests.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></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="securesourcemanager_v1.projects.locations.repositories.pullRequests.pullRequestComments.html">pullRequestComments()</a></code>
79 </p>
80 <p class="firstline">Returns the pullRequestComments Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close(name, body=None, x__xgafv=None)</a></code></p>
84 <p class="firstline">Closes a pull request without merging.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates a pull request.</p>
88 <p class="toc_element">
89 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
90 <p class="firstline">Gets a pull request.</p>
91 <p class="toc_element">
92 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
93 <p class="firstline">Lists pull requests in a repository.</p>
94 <p class="toc_element">
95 <code><a href="#listFileDiffs">listFileDiffs(name, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Lists a pull request's file diffs.</p>
97 <p class="toc_element">
98 <code><a href="#listFileDiffs_next">listFileDiffs_next()</a></code></p>
99 <p class="firstline">Retrieves the next page of results.</p>
100 <p class="toc_element">
101 <code><a href="#list_next">list_next()</a></code></p>
102 <p class="firstline">Retrieves the next page of results.</p>
103 <p class="toc_element">
104 <code><a href="#merge">merge(name, body=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Merges a pull request.</p>
106 <p class="toc_element">
107 <code><a href="#open">open(name, body=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">Opens a pull request.</p>
109 <p class="toc_element">
110 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
111 <p class="firstline">Updates a pull request.</p>
112 <h3>Method Details</h3>
113 <div class="method">
114 <code class="details" id="close">close(name, body=None, x__xgafv=None)</code>
115 <pre>Closes a pull request without merging.
116
117 Args:
118 name: string, Required. The pull request to close. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}` (required)
119 body: object, The request body.
120 The object takes the form of:
121
122 { # ClosePullRequestRequest is the request to close a pull request.
123 }
124
125 x__xgafv: string, V1 error format.
126 Allowed values
127 1 - v1 error format
128 2 - v2 error format
129
130 Returns:
131 An object of the form:
132
133 { # This resource represents a long-running operation that is the result of a network API call.
134 &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.
135 &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.
136 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
137 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
138 {
139 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
140 },
141 ],
142 &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.
143 },
144 &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.
145 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
146 },
147 &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}`.
148 &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`.
149 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
150 },
151 }</pre>
152 </div>
153
154 <div class="method">
155 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
156 <pre>Creates a pull request.
157
158 Args:
159 parent: string, Required. The repository that the pull request is created from. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}` (required)
160 body: object, The request body.
161 The object takes the form of:
162
163 { # Metadata of a PullRequest. PullRequest is the request from a user to merge a branch (head) into another branch (base).
164 &quot;base&quot;: { # Branch represents a branch involved in a pull request. # Required. The branch to merge changes in.
165 &quot;ref&quot;: &quot;A String&quot;, # Required. Name of the branch.
166 &quot;sha&quot;: &quot;A String&quot;, # Output only. The commit at the tip of the branch.
167 },
168 &quot;body&quot;: &quot;A String&quot;, # Optional. The pull request body. Provides a detailed description of the changes.
169 &quot;closeTime&quot;: &quot;A String&quot;, # Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
170 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
171 &quot;head&quot;: { # Branch represents a branch involved in a pull request. # Immutable. The branch containing the changes to be merged.
172 &quot;ref&quot;: &quot;A String&quot;, # Required. Name of the branch.
173 &quot;sha&quot;: &quot;A String&quot;, # Output only. The commit at the tip of the branch.
174 },
175 &quot;name&quot;: &quot;A String&quot;, # Output only. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
176 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the pull request (open, closed or merged).
177 &quot;title&quot;: &quot;A String&quot;, # Required. The pull request title.
178 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last updated timestamp.
179 }
180
181 x__xgafv: string, V1 error format.
182 Allowed values
183 1 - v1 error format
184 2 - v2 error format
185
186 Returns:
187 An object of the form:
188
189 { # This resource represents a long-running operation that is the result of a network API call.
190 &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.
191 &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.
192 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
193 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
194 {
195 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
196 },
197 ],
198 &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.
199 },
200 &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.
201 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
202 },
203 &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}`.
204 &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`.
205 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
206 },
207 }</pre>
208 </div>
209
210 <div class="method">
211 <code class="details" id="get">get(name, x__xgafv=None)</code>
212 <pre>Gets a pull request.
213
214 Args:
215 name: string, Required. Name of the pull request to retrieve. The format is `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}`. (required)
216 x__xgafv: string, V1 error format.
217 Allowed values
218 1 - v1 error format
219 2 - v2 error format
220
221 Returns:
222 An object of the form:
223
224 { # Metadata of a PullRequest. PullRequest is the request from a user to merge a branch (head) into another branch (base).
225 &quot;base&quot;: { # Branch represents a branch involved in a pull request. # Required. The branch to merge changes in.
226 &quot;ref&quot;: &quot;A String&quot;, # Required. Name of the branch.
227 &quot;sha&quot;: &quot;A String&quot;, # Output only. The commit at the tip of the branch.
228 },
229 &quot;body&quot;: &quot;A String&quot;, # Optional. The pull request body. Provides a detailed description of the changes.
230 &quot;closeTime&quot;: &quot;A String&quot;, # Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
231 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
232 &quot;head&quot;: { # Branch represents a branch involved in a pull request. # Immutable. The branch containing the changes to be merged.
233 &quot;ref&quot;: &quot;A String&quot;, # Required. Name of the branch.
234 &quot;sha&quot;: &quot;A String&quot;, # Output only. The commit at the tip of the branch.
235 },
236 &quot;name&quot;: &quot;A String&quot;, # Output only. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
237 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the pull request (open, closed or merged).
238 &quot;title&quot;: &quot;A String&quot;, # Required. The pull request title.
239 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last updated timestamp.
240 }</pre>
241 </div>
242
243 <div class="method">
244 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
245 <pre>Lists pull requests in a repository.
246
247 Args:
248 parent: string, Required. The repository in which to list pull requests. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}` (required)
249 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
250 pageToken: string, Optional. A token identifying a page of results the server should return.
251 x__xgafv: string, V1 error format.
252 Allowed values
253 1 - v1 error format
254 2 - v2 error format
255
256 Returns:
257 An object of the form:
258
259 { # ListPullRequestsResponse is the response to list pull requests.
260 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
261 &quot;pullRequests&quot;: [ # The list of pull requests.
262 { # Metadata of a PullRequest. PullRequest is the request from a user to merge a branch (head) into another branch (base).
263 &quot;base&quot;: { # Branch represents a branch involved in a pull request. # Required. The branch to merge changes in.
264 &quot;ref&quot;: &quot;A String&quot;, # Required. Name of the branch.
265 &quot;sha&quot;: &quot;A String&quot;, # Output only. The commit at the tip of the branch.
266 },
267 &quot;body&quot;: &quot;A String&quot;, # Optional. The pull request body. Provides a detailed description of the changes.
268 &quot;closeTime&quot;: &quot;A String&quot;, # Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
269 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
270 &quot;head&quot;: { # Branch represents a branch involved in a pull request. # Immutable. The branch containing the changes to be merged.
271 &quot;ref&quot;: &quot;A String&quot;, # Required. Name of the branch.
272 &quot;sha&quot;: &quot;A String&quot;, # Output only. The commit at the tip of the branch.
273 },
274 &quot;name&quot;: &quot;A String&quot;, # Output only. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
275 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the pull request (open, closed or merged).
276 &quot;title&quot;: &quot;A String&quot;, # Required. The pull request title.
277 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last updated timestamp.
278 },
279 ],
280 }</pre>
281 </div>
282
283 <div class="method">
284 <code class="details" id="listFileDiffs">listFileDiffs(name, pageSize=None, pageToken=None, x__xgafv=None)</code>
285 <pre>Lists a pull request&#x27;s file diffs.
286
287 Args:
288 name: string, Required. The pull request to list file diffs for. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}` (required)
289 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
290 pageToken: string, Optional. A token identifying a page of results the server should return.
291 x__xgafv: string, V1 error format.
292 Allowed values
293 1 - v1 error format
294 2 - v2 error format
295
296 Returns:
297 An object of the form:
298
299 { # ListPullRequestFileDiffsResponse is the response containing file diffs returned from ListPullRequestFileDiffs.
300 &quot;fileDiffs&quot;: [ # The list of pull request file diffs.
301 { # Metadata of a FileDiff. FileDiff represents a single file diff in a pull request.
302 &quot;action&quot;: &quot;A String&quot;, # Output only. The action taken on the file (eg. added, modified, deleted).
303 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the file.
304 &quot;patch&quot;: &quot;A String&quot;, # Output only. The git patch containing the file changes.
305 &quot;sha&quot;: &quot;A String&quot;, # Output only. The commit pointing to the file changes.
306 },
307 ],
308 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
309 }</pre>
310 </div>
311
312 <div class="method">
313 <code class="details" id="listFileDiffs_next">listFileDiffs_next()</code>
314 <pre>Retrieves the next page of results.
315
316 Args:
317 previous_request: The request for the previous page. (required)
318 previous_response: The response from the request for the previous page. (required)
319
320 Returns:
321 A request object that you can call &#x27;execute()&#x27; on to request the next
322 page. Returns None if there are no more items in the collection.
323 </pre>
324 </div>
325
326 <div class="method">
327 <code class="details" id="list_next">list_next()</code>
328 <pre>Retrieves the next page of results.
329
330 Args:
331 previous_request: The request for the previous page. (required)
332 previous_response: The response from the request for the previous page. (required)
333
334 Returns:
335 A request object that you can call &#x27;execute()&#x27; on to request the next
336 page. Returns None if there are no more items in the collection.
337 </pre>
338 </div>
339
340 <div class="method">
341 <code class="details" id="merge">merge(name, body=None, x__xgafv=None)</code>
342 <pre>Merges a pull request.
343
344 Args:
345 name: string, Required. The pull request to merge. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}` (required)
346 body: object, The request body.
347 The object takes the form of:
348
349 { # MergePullRequestRequest is the request to merge a pull request.
350 }
351
352 x__xgafv: string, V1 error format.
353 Allowed values
354 1 - v1 error format
355 2 - v2 error format
356
357 Returns:
358 An object of the form:
359
360 { # This resource represents a long-running operation that is the result of a network API call.
361 &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.
362 &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.
363 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
364 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
365 {
366 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
367 },
368 ],
369 &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.
370 },
371 &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.
372 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
373 },
374 &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}`.
375 &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`.
376 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
377 },
378 }</pre>
379 </div>
380
381 <div class="method">
382 <code class="details" id="open">open(name, body=None, x__xgafv=None)</code>
383 <pre>Opens a pull request.
384
385 Args:
386 name: string, Required. The pull request to open. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}` (required)
387 body: object, The request body.
388 The object takes the form of:
389
390 { # OpenPullRequestRequest is the request to open a pull request.
391 }
392
393 x__xgafv: string, V1 error format.
394 Allowed values
395 1 - v1 error format
396 2 - v2 error format
397
398 Returns:
399 An object of the form:
400
401 { # This resource represents a long-running operation that is the result of a network API call.
402 &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.
403 &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.
404 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
405 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
406 {
407 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
408 },
409 ],
410 &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.
411 },
412 &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.
413 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
414 },
415 &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}`.
416 &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`.
417 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
418 },
419 }</pre>
420 </div>
421
422 <div class="method">
423 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
424 <pre>Updates a pull request.
425
426 Args:
427 name: string, Output only. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}` (required)
428 body: object, The request body.
429 The object takes the form of:
430
431 { # Metadata of a PullRequest. PullRequest is the request from a user to merge a branch (head) into another branch (base).
432 &quot;base&quot;: { # Branch represents a branch involved in a pull request. # Required. The branch to merge changes in.
433 &quot;ref&quot;: &quot;A String&quot;, # Required. Name of the branch.
434 &quot;sha&quot;: &quot;A String&quot;, # Output only. The commit at the tip of the branch.
435 },
436 &quot;body&quot;: &quot;A String&quot;, # Optional. The pull request body. Provides a detailed description of the changes.
437 &quot;closeTime&quot;: &quot;A String&quot;, # Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
438 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
439 &quot;head&quot;: { # Branch represents a branch involved in a pull request. # Immutable. The branch containing the changes to be merged.
440 &quot;ref&quot;: &quot;A String&quot;, # Required. Name of the branch.
441 &quot;sha&quot;: &quot;A String&quot;, # Output only. The commit at the tip of the branch.
442 },
443 &quot;name&quot;: &quot;A String&quot;, # Output only. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
444 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the pull request (open, closed or merged).
445 &quot;title&quot;: &quot;A String&quot;, # Required. The pull request title.
446 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last updated timestamp.
447 }
448
449 updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the pull request resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value &quot;*&quot; means full replacement.
450 x__xgafv: string, V1 error format.
451 Allowed values
452 1 - v1 error format
453 2 - v2 error format
454
455 Returns:
456 An object of the form:
457
458 { # This resource represents a long-running operation that is the result of a network API call.
459 &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.
460 &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.
461 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
462 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
463 {
464 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
465 },
466 ],
467 &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.
468 },
469 &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.
470 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
471 },
472 &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}`.
473 &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`.
474 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
475 },
476 }</pre>
477 </div>
478
479 </body></html>