OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.clouddebugger.v2; | 3 library googleapis.clouddebugger.v2; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 final commons.ApiRequester _requester; | 50 final commons.ApiRequester _requester; |
51 | 51 |
52 ControllerDebuggeesBreakpointsResourceApi get breakpoints => new ControllerDeb
uggeesBreakpointsResourceApi(_requester); | 52 ControllerDebuggeesBreakpointsResourceApi get breakpoints => new ControllerDeb
uggeesBreakpointsResourceApi(_requester); |
53 | 53 |
54 ControllerDebuggeesResourceApi(commons.ApiRequester client) : | 54 ControllerDebuggeesResourceApi(commons.ApiRequester client) : |
55 _requester = client; | 55 _requester = client; |
56 | 56 |
57 /** | 57 /** |
58 * Registers the debuggee with the controller service. | 58 * Registers the debuggee with the controller service. |
59 * | 59 * |
60 * All agents attached to the same application should call this method with | 60 * All agents attached to the same application must call this method with |
61 * the same request content to get back the same stable `debuggee_id`. Agents | 61 * exactly the same request content to get back the same stable `debuggee_id`. |
62 * should call this method again whenever `google.rpc.Code.NOT_FOUND` is | 62 * Agents should call this method again whenever `google.rpc.Code.NOT_FOUND` |
63 * returned from any controller method. | 63 * is returned from any controller method. |
64 * | 64 * |
65 * This allows the controller service to disable the agent or recover from any | 65 * This protocol allows the controller service to disable debuggees, recover |
66 * data loss. If the debuggee is disabled by the server, the response will | 66 * from data loss, or change the `debuggee_id` format. Agents must handle |
67 * have `is_disabled` set to `true`. | 67 * `debuggee_id` value changing upon re-registration. |
68 * | 68 * |
69 * [request] - The metadata request object. | 69 * [request] - The metadata request object. |
70 * | 70 * |
71 * Request parameters: | 71 * Request parameters: |
72 * | 72 * |
73 * Completes with a [RegisterDebuggeeResponse]. | 73 * Completes with a [RegisterDebuggeeResponse]. |
74 * | 74 * |
75 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 75 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
76 * error. | 76 * error. |
77 * | 77 * |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 * This means that an agent does not need to check if a breakpoint has changed | 123 * This means that an agent does not need to check if a breakpoint has changed |
124 * when it encounters the same breakpoint on a successive call. | 124 * when it encounters the same breakpoint on a successive call. |
125 * Moreover, an agent should remember the breakpoints that are completed | 125 * Moreover, an agent should remember the breakpoints that are completed |
126 * until the controller removes them from the active list to avoid | 126 * until the controller removes them from the active list to avoid |
127 * setting those breakpoints again. | 127 * setting those breakpoints again. |
128 * | 128 * |
129 * Request parameters: | 129 * Request parameters: |
130 * | 130 * |
131 * [debuggeeId] - Identifies the debuggee. | 131 * [debuggeeId] - Identifies the debuggee. |
132 * | 132 * |
133 * [successOnTimeout] - If set to `true`, returns `google.rpc.Code.OK` status | 133 * [successOnTimeout] - If set to `true` (recommended), returns |
134 * and sets the | 134 * `google.rpc.Code.OK` status and |
135 * `wait_expired` response field to `true` when the server-selected timeout | 135 * sets the `wait_expired` response field to `true` when the server-selected |
136 * has expired (recommended). | 136 * timeout has expired. |
137 * | 137 * |
138 * If set to `false`, returns `google.rpc.Code.ABORTED` status when the | 138 * If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status |
139 * server-selected timeout has expired (deprecated). | 139 * when the server-selected timeout has expired. |
140 * | 140 * |
141 * [waitToken] - A wait token that, if specified, blocks the method call until | 141 * [waitToken] - A token that, if specified, blocks the method call until the |
142 * the list | 142 * list |
143 * of active breakpoints has changed, or a server selected timeout has | 143 * of active breakpoints has changed, or a server-selected timeout has |
144 * expired. The value should be set from the last returned response. | 144 * expired. The value should be set from the `next_wait_token` field in |
| 145 * the last response. The initial value should be set to `"init"`. |
145 * | 146 * |
146 * Completes with a [ListActiveBreakpointsResponse]. | 147 * Completes with a [ListActiveBreakpointsResponse]. |
147 * | 148 * |
148 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 149 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
149 * error. | 150 * error. |
150 * | 151 * |
151 * If the used [http.Client] completes with an error when making a REST call, | 152 * If the used [http.Client] completes with an error when making a REST call, |
152 * this method will complete with the same error. | 153 * this method will complete with the same error. |
153 */ | 154 */ |
154 async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, {core
.bool successOnTimeout, core.String waitToken}) { | 155 async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, {core
.bool successOnTimeout, core.String waitToken}) { |
(...skipping 21 matching lines...) Expand all Loading... |
176 body: _body, | 177 body: _body, |
177 queryParams: _queryParams, | 178 queryParams: _queryParams, |
178 uploadOptions: _uploadOptions, | 179 uploadOptions: _uploadOptions, |
179 uploadMedia: _uploadMedia, | 180 uploadMedia: _uploadMedia, |
180 downloadOptions: _downloadOptions); | 181 downloadOptions: _downloadOptions); |
181 return _response.then((data) => new ListActiveBreakpointsResponse.fromJson(d
ata)); | 182 return _response.then((data) => new ListActiveBreakpointsResponse.fromJson(d
ata)); |
182 } | 183 } |
183 | 184 |
184 /** | 185 /** |
185 * Updates the breakpoint state or mutable fields. | 186 * Updates the breakpoint state or mutable fields. |
186 * The entire Breakpoint message must be sent back to the controller | 187 * The entire Breakpoint message must be sent back to the controller service. |
187 * service. | |
188 * | 188 * |
189 * Updates to active breakpoint fields are only allowed if the new value | 189 * Updates to active breakpoint fields are only allowed if the new value |
190 * does not change the breakpoint specification. Updates to the `location`, | 190 * does not change the breakpoint specification. Updates to the `location`, |
191 * `condition` and `expressions` fields should not alter the breakpoint | 191 * `condition` and `expressions` fields should not alter the breakpoint |
192 * semantics. These may only make changes such as canonicalizing a value | 192 * semantics. These may only make changes such as canonicalizing a value |
193 * or snapping the location to the correct line of code. | 193 * or snapping the location to the correct line of code. |
194 * | 194 * |
195 * [request] - The metadata request object. | 195 * [request] - The metadata request object. |
196 * | 196 * |
197 * Request parameters: | 197 * Request parameters: |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 class DebuggerDebuggeesResourceApi { | 254 class DebuggerDebuggeesResourceApi { |
255 final commons.ApiRequester _requester; | 255 final commons.ApiRequester _requester; |
256 | 256 |
257 DebuggerDebuggeesBreakpointsResourceApi get breakpoints => new DebuggerDebugge
esBreakpointsResourceApi(_requester); | 257 DebuggerDebuggeesBreakpointsResourceApi get breakpoints => new DebuggerDebugge
esBreakpointsResourceApi(_requester); |
258 | 258 |
259 DebuggerDebuggeesResourceApi(commons.ApiRequester client) : | 259 DebuggerDebuggeesResourceApi(commons.ApiRequester client) : |
260 _requester = client; | 260 _requester = client; |
261 | 261 |
262 /** | 262 /** |
263 * Lists all the debuggees that the user can set breakpoints to. | 263 * Lists all the debuggees that the user has access to. |
264 * | 264 * |
265 * Request parameters: | 265 * Request parameters: |
266 * | 266 * |
| 267 * [clientVersion] - The client version making the call. |
| 268 * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). |
| 269 * |
267 * [includeInactive] - When set to `true`, the result includes all debuggees. | 270 * [includeInactive] - When set to `true`, the result includes all debuggees. |
268 * Otherwise, the | 271 * Otherwise, the |
269 * result includes only debuggees that are active. | 272 * result includes only debuggees that are active. |
270 * | 273 * |
271 * [project] - Project number of a Google Cloud project whose debuggees to | 274 * [project] - Project number of a Google Cloud project whose debuggees to |
272 * list. | 275 * list. |
273 * | 276 * |
274 * [clientVersion] - The client version making the call. | |
275 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). | |
276 * | |
277 * Completes with a [ListDebuggeesResponse]. | 277 * Completes with a [ListDebuggeesResponse]. |
278 * | 278 * |
279 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 279 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
280 * error. | 280 * error. |
281 * | 281 * |
282 * If the used [http.Client] completes with an error when making a REST call, | 282 * If the used [http.Client] completes with an error when making a REST call, |
283 * this method will complete with the same error. | 283 * this method will complete with the same error. |
284 */ | 284 */ |
285 async.Future<ListDebuggeesResponse> list({core.bool includeInactive, core.Stri
ng project, core.String clientVersion}) { | 285 async.Future<ListDebuggeesResponse> list({core.String clientVersion, core.bool
includeInactive, core.String project}) { |
286 var _url = null; | 286 var _url = null; |
287 var _queryParams = new core.Map(); | 287 var _queryParams = new core.Map(); |
288 var _uploadMedia = null; | 288 var _uploadMedia = null; |
289 var _uploadOptions = null; | 289 var _uploadOptions = null; |
290 var _downloadOptions = commons.DownloadOptions.Metadata; | 290 var _downloadOptions = commons.DownloadOptions.Metadata; |
291 var _body = null; | 291 var _body = null; |
292 | 292 |
| 293 if (clientVersion != null) { |
| 294 _queryParams["clientVersion"] = [clientVersion]; |
| 295 } |
293 if (includeInactive != null) { | 296 if (includeInactive != null) { |
294 _queryParams["includeInactive"] = ["${includeInactive}"]; | 297 _queryParams["includeInactive"] = ["${includeInactive}"]; |
295 } | 298 } |
296 if (project != null) { | 299 if (project != null) { |
297 _queryParams["project"] = [project]; | 300 _queryParams["project"] = [project]; |
298 } | 301 } |
299 if (clientVersion != null) { | |
300 _queryParams["clientVersion"] = [clientVersion]; | |
301 } | |
302 | 302 |
303 _url = 'v2/debugger/debuggees'; | 303 _url = 'v2/debugger/debuggees'; |
304 | 304 |
305 var _response = _requester.request(_url, | 305 var _response = _requester.request(_url, |
306 "GET", | 306 "GET", |
307 body: _body, | 307 body: _body, |
308 queryParams: _queryParams, | 308 queryParams: _queryParams, |
309 uploadOptions: _uploadOptions, | 309 uploadOptions: _uploadOptions, |
310 uploadMedia: _uploadMedia, | 310 uploadMedia: _uploadMedia, |
311 downloadOptions: _downloadOptions); | 311 downloadOptions: _downloadOptions); |
(...skipping 12 matching lines...) Expand all Loading... |
324 /** | 324 /** |
325 * Deletes the breakpoint from the debuggee. | 325 * Deletes the breakpoint from the debuggee. |
326 * | 326 * |
327 * Request parameters: | 327 * Request parameters: |
328 * | 328 * |
329 * [debuggeeId] - ID of the debuggee whose breakpoint to delete. | 329 * [debuggeeId] - ID of the debuggee whose breakpoint to delete. |
330 * | 330 * |
331 * [breakpointId] - ID of the breakpoint to delete. | 331 * [breakpointId] - ID of the breakpoint to delete. |
332 * | 332 * |
333 * [clientVersion] - The client version making the call. | 333 * [clientVersion] - The client version making the call. |
334 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). | 334 * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). |
335 * | 335 * |
336 * Completes with a [Empty]. | 336 * Completes with a [Empty]. |
337 * | 337 * |
338 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 338 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
339 * error. | 339 * error. |
340 * | 340 * |
341 * If the used [http.Client] completes with an error when making a REST call, | 341 * If the used [http.Client] completes with an error when making a REST call, |
342 * this method will complete with the same error. | 342 * this method will complete with the same error. |
343 */ | 343 */ |
344 async.Future<Empty> delete(core.String debuggeeId, core.String breakpointId, {
core.String clientVersion}) { | 344 async.Future<Empty> delete(core.String debuggeeId, core.String breakpointId, {
core.String clientVersion}) { |
(...skipping 29 matching lines...) Expand all Loading... |
374 /** | 374 /** |
375 * Gets breakpoint information. | 375 * Gets breakpoint information. |
376 * | 376 * |
377 * Request parameters: | 377 * Request parameters: |
378 * | 378 * |
379 * [debuggeeId] - ID of the debuggee whose breakpoint to get. | 379 * [debuggeeId] - ID of the debuggee whose breakpoint to get. |
380 * | 380 * |
381 * [breakpointId] - ID of the breakpoint to get. | 381 * [breakpointId] - ID of the breakpoint to get. |
382 * | 382 * |
383 * [clientVersion] - The client version making the call. | 383 * [clientVersion] - The client version making the call. |
384 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). | 384 * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). |
385 * | 385 * |
386 * Completes with a [GetBreakpointResponse]. | 386 * Completes with a [GetBreakpointResponse]. |
387 * | 387 * |
388 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 388 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
389 * error. | 389 * error. |
390 * | 390 * |
391 * If the used [http.Client] completes with an error when making a REST call, | 391 * If the used [http.Client] completes with an error when making a REST call, |
392 * this method will complete with the same error. | 392 * this method will complete with the same error. |
393 */ | 393 */ |
394 async.Future<GetBreakpointResponse> get(core.String debuggeeId, core.String br
eakpointId, {core.String clientVersion}) { | 394 async.Future<GetBreakpointResponse> get(core.String debuggeeId, core.String br
eakpointId, {core.String clientVersion}) { |
(...skipping 26 matching lines...) Expand all Loading... |
421 return _response.then((data) => new GetBreakpointResponse.fromJson(data)); | 421 return _response.then((data) => new GetBreakpointResponse.fromJson(data)); |
422 } | 422 } |
423 | 423 |
424 /** | 424 /** |
425 * Lists all breakpoints for the debuggee. | 425 * Lists all breakpoints for the debuggee. |
426 * | 426 * |
427 * Request parameters: | 427 * Request parameters: |
428 * | 428 * |
429 * [debuggeeId] - ID of the debuggee whose breakpoints to list. | 429 * [debuggeeId] - ID of the debuggee whose breakpoints to list. |
430 * | 430 * |
| 431 * [stripResults] - This field is deprecated. The following fields are always |
| 432 * stripped out of |
| 433 * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. |
| 434 * |
431 * [waitToken] - A wait token that, if specified, blocks the call until the | 435 * [waitToken] - A wait token that, if specified, blocks the call until the |
432 * breakpoints | 436 * breakpoints |
433 * list has changed, or a server selected timeout has expired. The value | 437 * list has changed, or a server selected timeout has expired. The value |
434 * should be set from the last response. The error code | 438 * should be set from the last response. The error code |
435 * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which | 439 * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which |
436 * should be called again with the same `wait_token`. | 440 * should be called again with the same `wait_token`. |
437 * | 441 * |
438 * [clientVersion] - The client version making the call. | 442 * [clientVersion] - The client version making the call. |
439 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). | 443 * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). |
440 * | 444 * |
441 * [action_value] - Only breakpoints with the specified action will pass the | 445 * [action_value] - Only breakpoints with the specified action will pass the |
442 * filter. | 446 * filter. |
443 * Possible string values are: | 447 * Possible string values are: |
444 * - "CAPTURE" : A CAPTURE. | 448 * - "CAPTURE" : A CAPTURE. |
445 * - "LOG" : A LOG. | 449 * - "LOG" : A LOG. |
446 * | 450 * |
447 * [includeInactive] - When set to `true`, the response includes active and | 451 * [includeInactive] - When set to `true`, the response includes active and |
448 * inactive | 452 * inactive |
449 * breakpoints. Otherwise, it includes only active breakpoints. | 453 * breakpoints. Otherwise, it includes only active breakpoints. |
450 * | 454 * |
451 * [includeAllUsers] - When set to `true`, the response includes the list of | 455 * [includeAllUsers] - When set to `true`, the response includes the list of |
452 * breakpoints set by | 456 * breakpoints set by |
453 * any user. Otherwise, it includes only breakpoints set by the caller. | 457 * any user. Otherwise, it includes only breakpoints set by the caller. |
454 * | 458 * |
455 * [stripResults] - This field is deprecated. The following fields are always | |
456 * stripped out of | |
457 * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. | |
458 * | |
459 * Completes with a [ListBreakpointsResponse]. | 459 * Completes with a [ListBreakpointsResponse]. |
460 * | 460 * |
461 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 461 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
462 * error. | 462 * error. |
463 * | 463 * |
464 * If the used [http.Client] completes with an error when making a REST call, | 464 * If the used [http.Client] completes with an error when making a REST call, |
465 * this method will complete with the same error. | 465 * this method will complete with the same error. |
466 */ | 466 */ |
467 async.Future<ListBreakpointsResponse> list(core.String debuggeeId, {core.Strin
g waitToken, core.String clientVersion, core.String action_value, core.bool incl
udeInactive, core.bool includeAllUsers, core.bool stripResults}) { | 467 async.Future<ListBreakpointsResponse> list(core.String debuggeeId, {core.bool
stripResults, core.String waitToken, core.String clientVersion, core.String acti
on_value, core.bool includeInactive, core.bool includeAllUsers}) { |
468 var _url = null; | 468 var _url = null; |
469 var _queryParams = new core.Map(); | 469 var _queryParams = new core.Map(); |
470 var _uploadMedia = null; | 470 var _uploadMedia = null; |
471 var _uploadOptions = null; | 471 var _uploadOptions = null; |
472 var _downloadOptions = commons.DownloadOptions.Metadata; | 472 var _downloadOptions = commons.DownloadOptions.Metadata; |
473 var _body = null; | 473 var _body = null; |
474 | 474 |
475 if (debuggeeId == null) { | 475 if (debuggeeId == null) { |
476 throw new core.ArgumentError("Parameter debuggeeId is required."); | 476 throw new core.ArgumentError("Parameter debuggeeId is required."); |
477 } | 477 } |
| 478 if (stripResults != null) { |
| 479 _queryParams["stripResults"] = ["${stripResults}"]; |
| 480 } |
478 if (waitToken != null) { | 481 if (waitToken != null) { |
479 _queryParams["waitToken"] = [waitToken]; | 482 _queryParams["waitToken"] = [waitToken]; |
480 } | 483 } |
481 if (clientVersion != null) { | 484 if (clientVersion != null) { |
482 _queryParams["clientVersion"] = [clientVersion]; | 485 _queryParams["clientVersion"] = [clientVersion]; |
483 } | 486 } |
484 if (action_value != null) { | 487 if (action_value != null) { |
485 _queryParams["action.value"] = [action_value]; | 488 _queryParams["action.value"] = [action_value]; |
486 } | 489 } |
487 if (includeInactive != null) { | 490 if (includeInactive != null) { |
488 _queryParams["includeInactive"] = ["${includeInactive}"]; | 491 _queryParams["includeInactive"] = ["${includeInactive}"]; |
489 } | 492 } |
490 if (includeAllUsers != null) { | 493 if (includeAllUsers != null) { |
491 _queryParams["includeAllUsers"] = ["${includeAllUsers}"]; | 494 _queryParams["includeAllUsers"] = ["${includeAllUsers}"]; |
492 } | 495 } |
493 if (stripResults != null) { | |
494 _queryParams["stripResults"] = ["${stripResults}"]; | |
495 } | |
496 | 496 |
497 _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId
') + '/breakpoints'; | 497 _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId
') + '/breakpoints'; |
498 | 498 |
499 var _response = _requester.request(_url, | 499 var _response = _requester.request(_url, |
500 "GET", | 500 "GET", |
501 body: _body, | 501 body: _body, |
502 queryParams: _queryParams, | 502 queryParams: _queryParams, |
503 uploadOptions: _uploadOptions, | 503 uploadOptions: _uploadOptions, |
504 uploadMedia: _uploadMedia, | 504 uploadMedia: _uploadMedia, |
505 downloadOptions: _downloadOptions); | 505 downloadOptions: _downloadOptions); |
506 return _response.then((data) => new ListBreakpointsResponse.fromJson(data)); | 506 return _response.then((data) => new ListBreakpointsResponse.fromJson(data)); |
507 } | 507 } |
508 | 508 |
509 /** | 509 /** |
510 * Sets the breakpoint to the debuggee. | 510 * Sets the breakpoint to the debuggee. |
511 * | 511 * |
512 * [request] - The metadata request object. | 512 * [request] - The metadata request object. |
513 * | 513 * |
514 * Request parameters: | 514 * Request parameters: |
515 * | 515 * |
516 * [debuggeeId] - ID of the debuggee where the breakpoint is to be set. | 516 * [debuggeeId] - ID of the debuggee where the breakpoint is to be set. |
517 * | 517 * |
518 * [clientVersion] - The client version making the call. | 518 * [clientVersion] - The client version making the call. |
519 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). | 519 * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). |
520 * | 520 * |
521 * Completes with a [SetBreakpointResponse]. | 521 * Completes with a [SetBreakpointResponse]. |
522 * | 522 * |
523 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 523 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
524 * error. | 524 * error. |
525 * | 525 * |
526 * If the used [http.Client] completes with an error when making a REST call, | 526 * If the used [http.Client] completes with an error when making a REST call, |
527 * this method will complete with the same error. | 527 * this method will complete with the same error. |
528 */ | 528 */ |
529 async.Future<SetBreakpointResponse> set(Breakpoint request, core.String debugg
eeId, {core.String clientVersion}) { | 529 async.Future<SetBreakpointResponse> set(Breakpoint request, core.String debugg
eeId, {core.String clientVersion}) { |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 _json["snapshotId"] = snapshotId; | 936 _json["snapshotId"] = snapshotId; |
937 } | 937 } |
938 if (workspaceId != null) { | 938 if (workspaceId != null) { |
939 _json["workspaceId"] = (workspaceId).toJson(); | 939 _json["workspaceId"] = (workspaceId).toJson(); |
940 } | 940 } |
941 return _json; | 941 return _json; |
942 } | 942 } |
943 } | 943 } |
944 | 944 |
945 /** | 945 /** |
946 * Represents the application to debug. The application may include one or more | 946 * Represents the debugged application. The application may include one or more |
947 * replicated processes executing the same code. Each of these processes is | 947 * replicated processes executing the same code. Each of these processes is |
948 * attached with a debugger agent, carrying out the debugging commands. | 948 * attached with a debugger agent, carrying out the debugging commands. |
949 * The agents attached to the same debuggee are identified by using exactly the | 949 * Agents attached to the same debuggee identify themselves as such by using |
950 * same field values when registering. | 950 * exactly the same Debuggee message value when registering. |
951 */ | 951 */ |
952 class Debuggee { | 952 class Debuggee { |
953 /** | 953 /** |
954 * Version ID of the agent release. The version ID is structured as | 954 * Version ID of the agent. |
955 * following: `domain/type/vmajor.minor` (for example | 955 * Schema: `domain/language-platform/vmajor.minor` (for example |
956 * `google.com/gcp-java/v1.1`). | 956 * `google.com/java-gcp/v1.1`). |
957 */ | 957 */ |
958 core.String agentVersion; | 958 core.String agentVersion; |
959 /** | 959 /** |
960 * Human readable description of the debuggee. | 960 * Human readable description of the debuggee. |
961 * Including a human-readable project name, environment name and version | 961 * Including a human-readable project name, environment name and version |
962 * information is recommended. | 962 * information is recommended. |
963 */ | 963 */ |
964 core.String description; | 964 core.String description; |
965 /** | 965 /** |
966 * References to the locations and revisions of the source code used in the | 966 * References to the locations and revisions of the source code used in the |
967 * deployed application. | 967 * deployed application. |
968 * | 968 * |
969 * Contexts describing a remote repo related to the source code | 969 * NOTE: this field is experimental and can be ignored. |
970 * have a `category` label of `remote_repo`. Source snapshot source | |
971 * contexts have a `category` of `snapshot`. | |
972 */ | 970 */ |
973 core.List<ExtendedSourceContext> extSourceContexts; | 971 core.List<ExtendedSourceContext> extSourceContexts; |
974 /** | 972 /** |
975 * Unique identifier for the debuggee generated by the controller service. | 973 * Unique identifier for the debuggee generated by the controller service. |
976 */ | 974 */ |
977 core.String id; | 975 core.String id; |
978 /** | 976 /** |
979 * If set to `true`, indicates that the agent should disable itself and | 977 * If set to `true`, indicates that the agent should disable itself and |
980 * detach from the debuggee. | 978 * detach from the debuggee. |
981 */ | 979 */ |
982 core.bool isDisabled; | 980 core.bool isDisabled; |
983 /** | 981 /** |
984 * If set to `true`, indicates that the debuggee is considered as inactive by | 982 * If set to `true`, indicates that Controller service does not detect any |
985 * the Controller service. | 983 * activity from the debuggee agents and the application is possibly stopped. |
986 */ | 984 */ |
987 core.bool isInactive; | 985 core.bool isInactive; |
988 /** | 986 /** |
989 * A set of custom debuggee properties, populated by the agent, to be | 987 * A set of custom debuggee properties, populated by the agent, to be |
990 * displayed to the user. | 988 * displayed to the user. |
991 */ | 989 */ |
992 core.Map<core.String, core.String> labels; | 990 core.Map<core.String, core.String> labels; |
993 /** | 991 /** |
994 * Project the debuggee is associated with. | 992 * Project the debuggee is associated with. |
995 * Use the project number when registering a Google Cloud Platform project. | 993 * Use project number or id when registering a Google Cloud Platform project. |
996 */ | 994 */ |
997 core.String project; | 995 core.String project; |
998 /** | 996 /** |
999 * References to the locations and revisions of the source code used in the | 997 * References to the locations and revisions of the source code used in the |
1000 * deployed application. | 998 * deployed application. |
1001 * | |
1002 * NOTE: This field is deprecated. Consumers should use | |
1003 * `ext_source_contexts` if it is not empty. Debug agents should populate | |
1004 * both this field and `ext_source_contexts`. | |
1005 */ | 999 */ |
1006 core.List<SourceContext> sourceContexts; | 1000 core.List<SourceContext> sourceContexts; |
1007 /** | 1001 /** |
1008 * Human readable message to be displayed to the user about this debuggee. | 1002 * Human readable message to be displayed to the user about this debuggee. |
1009 * Absence of this field indicates no status. The message can be either | 1003 * Absence of this field indicates no status. The message can be either |
1010 * informational or an error status. | 1004 * informational or an error status. |
1011 */ | 1005 */ |
1012 StatusMessage status; | 1006 StatusMessage status; |
1013 /** | 1007 /** |
1014 * Debuggee uniquifier within the project. | 1008 * Uniquifier to further distiguish the application. |
1015 * Any string that identifies the application within the project can be used. | 1009 * It is possible that different applications might have identical values in |
1016 * Including environment and version or build IDs is recommended. | 1010 * the debuggee message, thus, incorrectly identified as a single application |
| 1011 * by the Controller service. This field adds salt to further distiguish the |
| 1012 * application. Agents should consider seeding this field with value that |
| 1013 * identifies the code, binary, configuration and environment. |
1017 */ | 1014 */ |
1018 core.String uniquifier; | 1015 core.String uniquifier; |
1019 | 1016 |
1020 Debuggee(); | 1017 Debuggee(); |
1021 | 1018 |
1022 Debuggee.fromJson(core.Map _json) { | 1019 Debuggee.fromJson(core.Map _json) { |
1023 if (_json.containsKey("agentVersion")) { | 1020 if (_json.containsKey("agentVersion")) { |
1024 agentVersion = _json["agentVersion"]; | 1021 agentVersion = _json["agentVersion"]; |
1025 } | 1022 } |
1026 if (_json.containsKey("description")) { | 1023 if (_json.containsKey("description")) { |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 } | 1308 } |
1312 | 1309 |
1313 /** Response for listing active breakpoints. */ | 1310 /** Response for listing active breakpoints. */ |
1314 class ListActiveBreakpointsResponse { | 1311 class ListActiveBreakpointsResponse { |
1315 /** | 1312 /** |
1316 * List of all active breakpoints. | 1313 * List of all active breakpoints. |
1317 * The fields `id` and `location` are guaranteed to be set on each breakpoint. | 1314 * The fields `id` and `location` are guaranteed to be set on each breakpoint. |
1318 */ | 1315 */ |
1319 core.List<Breakpoint> breakpoints; | 1316 core.List<Breakpoint> breakpoints; |
1320 /** | 1317 /** |
1321 * A wait token that can be used in the next method call to block until | 1318 * A token that can be used in the next method call to block until |
1322 * the list of breakpoints changes. | 1319 * the list of breakpoints changes. |
1323 */ | 1320 */ |
1324 core.String nextWaitToken; | 1321 core.String nextWaitToken; |
1325 /** | 1322 /** |
1326 * The `wait_expired` field is set to true by the server when the | 1323 * If set to `true`, indicates that there is no change to the |
1327 * request times out and the field `success_on_timeout` is set to true. | 1324 * list of active breakpoints and the server-selected timeout has expired. |
| 1325 * The `breakpoints` field would be empty and should be ignored. |
1328 */ | 1326 */ |
1329 core.bool waitExpired; | 1327 core.bool waitExpired; |
1330 | 1328 |
1331 ListActiveBreakpointsResponse(); | 1329 ListActiveBreakpointsResponse(); |
1332 | 1330 |
1333 ListActiveBreakpointsResponse.fromJson(core.Map _json) { | 1331 ListActiveBreakpointsResponse.fromJson(core.Map _json) { |
1334 if (_json.containsKey("breakpoints")) { | 1332 if (_json.containsKey("breakpoints")) { |
1335 breakpoints = _json["breakpoints"].map((value) => new Breakpoint.fromJson(
value)).toList(); | 1333 breakpoints = _json["breakpoints"].map((value) => new Breakpoint.fromJson(
value)).toList(); |
1336 } | 1334 } |
1337 if (_json.containsKey("nextWaitToken")) { | 1335 if (_json.containsKey("nextWaitToken")) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1392 _json["nextWaitToken"] = nextWaitToken; | 1390 _json["nextWaitToken"] = nextWaitToken; |
1393 } | 1391 } |
1394 return _json; | 1392 return _json; |
1395 } | 1393 } |
1396 } | 1394 } |
1397 | 1395 |
1398 /** Response for listing debuggees. */ | 1396 /** Response for listing debuggees. */ |
1399 class ListDebuggeesResponse { | 1397 class ListDebuggeesResponse { |
1400 /** | 1398 /** |
1401 * List of debuggees accessible to the calling user. | 1399 * List of debuggees accessible to the calling user. |
1402 * Note that the `description` field is the only human readable field | 1400 * The fields `debuggee.id` and `description` are guaranteed to be set. |
1403 * that should be displayed to the user. | 1401 * The `description` field is a human readable field provided by agents and |
1404 * The fields `debuggee.id` and `description` fields are guaranteed to be | 1402 * can be displayed to users. |
1405 * set on each debuggee. | |
1406 */ | 1403 */ |
1407 core.List<Debuggee> debuggees; | 1404 core.List<Debuggee> debuggees; |
1408 | 1405 |
1409 ListDebuggeesResponse(); | 1406 ListDebuggeesResponse(); |
1410 | 1407 |
1411 ListDebuggeesResponse.fromJson(core.Map _json) { | 1408 ListDebuggeesResponse.fromJson(core.Map _json) { |
1412 if (_json.containsKey("debuggees")) { | 1409 if (_json.containsKey("debuggees")) { |
1413 debuggees = _json["debuggees"].map((value) => new Debuggee.fromJson(value)
).toList(); | 1410 debuggees = _json["debuggees"].map((value) => new Debuggee.fromJson(value)
).toList(); |
1414 } | 1411 } |
1415 } | 1412 } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1480 } | 1477 } |
1481 return _json; | 1478 return _json; |
1482 } | 1479 } |
1483 } | 1480 } |
1484 | 1481 |
1485 /** Response for registering a debuggee. */ | 1482 /** Response for registering a debuggee. */ |
1486 class RegisterDebuggeeResponse { | 1483 class RegisterDebuggeeResponse { |
1487 /** | 1484 /** |
1488 * Debuggee resource. | 1485 * Debuggee resource. |
1489 * The field `id` is guranteed to be set (in addition to the echoed fields). | 1486 * The field `id` is guranteed to be set (in addition to the echoed fields). |
| 1487 * If the field `is_disabled` is set to `true`, the agent should disable |
| 1488 * itself by removing all breakpoints and detaching from the application. |
| 1489 * It should however continue to poll `RegisterDebuggee` until reenabled. |
1490 */ | 1490 */ |
1491 Debuggee debuggee; | 1491 Debuggee debuggee; |
1492 | 1492 |
1493 RegisterDebuggeeResponse(); | 1493 RegisterDebuggeeResponse(); |
1494 | 1494 |
1495 RegisterDebuggeeResponse.fromJson(core.Map _json) { | 1495 RegisterDebuggeeResponse.fromJson(core.Map _json) { |
1496 if (_json.containsKey("debuggee")) { | 1496 if (_json.containsKey("debuggee")) { |
1497 debuggee = new Debuggee.fromJson(_json["debuggee"]); | 1497 debuggee = new Debuggee.fromJson(_json["debuggee"]); |
1498 } | 1498 } |
1499 } | 1499 } |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1752 } | 1752 } |
1753 return _json; | 1753 return _json; |
1754 } | 1754 } |
1755 } | 1755 } |
1756 | 1756 |
1757 /** Request to update an active breakpoint. */ | 1757 /** Request to update an active breakpoint. */ |
1758 class UpdateActiveBreakpointRequest { | 1758 class UpdateActiveBreakpointRequest { |
1759 /** | 1759 /** |
1760 * Updated breakpoint information. | 1760 * Updated breakpoint information. |
1761 * The field `id` must be set. | 1761 * The field `id` must be set. |
| 1762 * The agent must echo all Breakpoint specification fields in the update. |
1762 */ | 1763 */ |
1763 Breakpoint breakpoint; | 1764 Breakpoint breakpoint; |
1764 | 1765 |
1765 UpdateActiveBreakpointRequest(); | 1766 UpdateActiveBreakpointRequest(); |
1766 | 1767 |
1767 UpdateActiveBreakpointRequest.fromJson(core.Map _json) { | 1768 UpdateActiveBreakpointRequest.fromJson(core.Map _json) { |
1768 if (_json.containsKey("breakpoint")) { | 1769 if (_json.containsKey("breakpoint")) { |
1769 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); | 1770 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); |
1770 } | 1771 } |
1771 } | 1772 } |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1989 } | 1990 } |
1990 if (value != null) { | 1991 if (value != null) { |
1991 _json["value"] = value; | 1992 _json["value"] = value; |
1992 } | 1993 } |
1993 if (varTableIndex != null) { | 1994 if (varTableIndex != null) { |
1994 _json["varTableIndex"] = varTableIndex; | 1995 _json["varTableIndex"] = varTableIndex; |
1995 } | 1996 } |
1996 return _json; | 1997 return _json; |
1997 } | 1998 } |
1998 } | 1999 } |
OLD | NEW |