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 112 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 * [waitToken] - A wait token that, if specified, blocks the method call until | |
134 * the list | |
135 * of active breakpoints has changed, or a server selected timeout has | |
136 * expired. The value should be set from the last returned response. | |
137 * | |
138 * [successOnTimeout] - If set to `true`, returns `google.rpc.Code.OK` status | 133 * [successOnTimeout] - If set to `true`, returns `google.rpc.Code.OK` status |
139 * and sets the | 134 * and sets the |
140 * `wait_expired` response field to `true` when the server-selected timeout | 135 * `wait_expired` response field to `true` when the server-selected timeout |
141 * has expired (recommended). | 136 * has expired (recommended). |
142 * | 137 * |
143 * If set to `false`, returns `google.rpc.Code.ABORTED` status when the | 138 * If set to `false`, returns `google.rpc.Code.ABORTED` status when the |
144 * server-selected timeout has expired (deprecated). | 139 * server-selected timeout has expired (deprecated). |
145 * | 140 * |
| 141 * [waitToken] - A wait token that, if specified, blocks the method call until |
| 142 * the list |
| 143 * of active breakpoints has changed, or a server selected timeout has |
| 144 * expired. The value should be set from the last returned response. |
| 145 * |
146 * Completes with a [ListActiveBreakpointsResponse]. | 146 * Completes with a [ListActiveBreakpointsResponse]. |
147 * | 147 * |
148 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 148 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
149 * error. | 149 * error. |
150 * | 150 * |
151 * If the used [http.Client] completes with an error when making a REST call, | 151 * If the used [http.Client] completes with an error when making a REST call, |
152 * this method will complete with the same error. | 152 * this method will complete with the same error. |
153 */ | 153 */ |
154 async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, {core
.String waitToken, core.bool successOnTimeout}) { | 154 async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, {core
.bool successOnTimeout, core.String waitToken}) { |
155 var _url = null; | 155 var _url = null; |
156 var _queryParams = new core.Map(); | 156 var _queryParams = new core.Map(); |
157 var _uploadMedia = null; | 157 var _uploadMedia = null; |
158 var _uploadOptions = null; | 158 var _uploadOptions = null; |
159 var _downloadOptions = commons.DownloadOptions.Metadata; | 159 var _downloadOptions = commons.DownloadOptions.Metadata; |
160 var _body = null; | 160 var _body = null; |
161 | 161 |
162 if (debuggeeId == null) { | 162 if (debuggeeId == null) { |
163 throw new core.ArgumentError("Parameter debuggeeId is required."); | 163 throw new core.ArgumentError("Parameter debuggeeId is required."); |
164 } | 164 } |
| 165 if (successOnTimeout != null) { |
| 166 _queryParams["successOnTimeout"] = ["${successOnTimeout}"]; |
| 167 } |
165 if (waitToken != null) { | 168 if (waitToken != null) { |
166 _queryParams["waitToken"] = [waitToken]; | 169 _queryParams["waitToken"] = [waitToken]; |
167 } | 170 } |
168 if (successOnTimeout != null) { | |
169 _queryParams["successOnTimeout"] = ["${successOnTimeout}"]; | |
170 } | |
171 | 171 |
172 _url = 'v2/controller/debuggees/' + commons.Escaper.ecapeVariable('$debuggee
Id') + '/breakpoints'; | 172 _url = 'v2/controller/debuggees/' + commons.Escaper.ecapeVariable('$debuggee
Id') + '/breakpoints'; |
173 | 173 |
174 var _response = _requester.request(_url, | 174 var _response = _requester.request(_url, |
175 "GET", | 175 "GET", |
176 body: _body, | 176 body: _body, |
177 queryParams: _queryParams, | 177 queryParams: _queryParams, |
178 uploadOptions: _uploadOptions, | 178 uploadOptions: _uploadOptions, |
179 uploadMedia: _uploadMedia, | 179 uploadMedia: _uploadMedia, |
180 downloadOptions: _downloadOptions); | 180 downloadOptions: _downloadOptions); |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 * |
| 442 * [clientVersion] - The client version making the call. |
| 443 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). |
| 444 * |
438 * [action_value] - Only breakpoints with the specified action will pass the | 445 * [action_value] - Only breakpoints with the specified action will pass the |
439 * filter. | 446 * filter. |
440 * Possible string values are: | 447 * Possible string values are: |
441 * - "CAPTURE" : A CAPTURE. | 448 * - "CAPTURE" : A CAPTURE. |
442 * - "LOG" : A LOG. | 449 * - "LOG" : A LOG. |
443 * | 450 * |
444 * [clientVersion] - The client version making the call. | 451 * [includeAllUsers] - When set to `true`, the response includes the list of |
445 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). | 452 * breakpoints set by |
| 453 * any user. Otherwise, it includes only breakpoints set by the caller. |
446 * | 454 * |
447 * [includeInactive] - When set to `true`, the response includes active and | 455 * [includeInactive] - When set to `true`, the response includes active and |
448 * inactive | 456 * inactive |
449 * breakpoints. Otherwise, it includes only active breakpoints. | 457 * breakpoints. Otherwise, it includes only active breakpoints. |
450 * | 458 * |
451 * [includeAllUsers] - When set to `true`, the response includes the list of | |
452 * breakpoints set by | |
453 * any user. Otherwise, it includes only breakpoints set by the caller. | |
454 * | |
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 action_value, core.String clientVersion, 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 includeAllUsers, core.bool includeInactive}) { |
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 } |
| 484 if (clientVersion != null) { |
| 485 _queryParams["clientVersion"] = [clientVersion]; |
| 486 } |
481 if (action_value != null) { | 487 if (action_value != null) { |
482 _queryParams["action.value"] = [action_value]; | 488 _queryParams["action.value"] = [action_value]; |
483 } | 489 } |
484 if (clientVersion != null) { | 490 if (includeAllUsers != null) { |
485 _queryParams["clientVersion"] = [clientVersion]; | 491 _queryParams["includeAllUsers"] = ["${includeAllUsers}"]; |
486 } | 492 } |
487 if (includeInactive != null) { | 493 if (includeInactive != null) { |
488 _queryParams["includeInactive"] = ["${includeInactive}"]; | 494 _queryParams["includeInactive"] = ["${includeInactive}"]; |
489 } | 495 } |
490 if (includeAllUsers != null) { | |
491 _queryParams["includeAllUsers"] = ["${includeAllUsers}"]; | |
492 } | |
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); |
(...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1989 } | 1989 } |
1990 if (value != null) { | 1990 if (value != null) { |
1991 _json["value"] = value; | 1991 _json["value"] = value; |
1992 } | 1992 } |
1993 if (varTableIndex != null) { | 1993 if (varTableIndex != null) { |
1994 _json["varTableIndex"] = varTableIndex; | 1994 _json["varTableIndex"] = varTableIndex; |
1995 } | 1995 } |
1996 return _json; | 1996 return _json; |
1997 } | 1997 } |
1998 } | 1998 } |
OLD | NEW |