Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: generated/googleapis/lib/clouddebugger/v2.dart

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 class ControllerDebuggeesBreakpointsResourceApi { 108 class ControllerDebuggeesBreakpointsResourceApi {
109 final commons.ApiRequester _requester; 109 final commons.ApiRequester _requester;
110 110
111 ControllerDebuggeesBreakpointsResourceApi(commons.ApiRequester client) : 111 ControllerDebuggeesBreakpointsResourceApi(commons.ApiRequester client) :
112 _requester = client; 112 _requester = client;
113 113
114 /** 114 /**
115 * Returns the list of all active breakpoints for the debuggee. 115 * Returns the list of all active breakpoints for the debuggee.
116 * 116 *
117 * The breakpoint specification (location, condition, and expression 117 * The breakpoint specification (`location`, `condition`, and `expressions`
118 * fields) is semantically immutable, although the field values may 118 * fields) is semantically immutable, although the field values may
119 * change. For example, an agent may update the location line number 119 * change. For example, an agent may update the location line number
120 * to reflect the actual line where the breakpoint was set, but this 120 * to reflect the actual line where the breakpoint was set, but this
121 * doesn't change the breakpoint semantics. 121 * doesn't change the breakpoint semantics.
122 * 122 *
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.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 return _response.then((data) => new ListActiveBreakpointsResponse.fromJson(d ata)); 181 return _response.then((data) => new ListActiveBreakpointsResponse.fromJson(d ata));
182 } 182 }
183 183
184 /** 184 /**
185 * Updates the breakpoint state or mutable fields. 185 * Updates the breakpoint state or mutable fields.
186 * The entire Breakpoint message must be sent back to the controller 186 * The entire Breakpoint message must be sent back to the controller
187 * 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 `expression` 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:
198 * 198 *
199 * [debuggeeId] - Identifies the debuggee being debugged. 199 * [debuggeeId] - Identifies the debuggee being debugged.
200 * 200 *
201 * [id] - Breakpoint identifier, unique in the scope of the debuggee. 201 * [id] - Breakpoint identifier, unique in the scope of the debuggee.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 can set breakpoints to.
264 * 264 *
265 * Request parameters: 265 * Request parameters:
266 * 266 *
267 * [clientVersion] - The client version making the call.
268 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
269 *
270 * [includeInactive] - When set to `true`, the result includes all debuggees. 267 * [includeInactive] - When set to `true`, the result includes all debuggees.
271 * Otherwise, the 268 * Otherwise, the
272 * result includes only debuggees that are active. 269 * result includes only debuggees that are active.
273 * 270 *
274 * [project] - Project number of a Google Cloud project whose debuggees to 271 * [project] - Project number of a Google Cloud project whose debuggees to
275 * list. 272 * list.
276 * 273 *
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.String clientVersion, core.bool includeInactive, core.String project}) { 285 async.Future<ListDebuggeesResponse> list({core.bool includeInactive, core.Stri ng project, core.String clientVersion}) {
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 }
296 if (includeInactive != null) { 293 if (includeInactive != null) {
297 _queryParams["includeInactive"] = ["${includeInactive}"]; 294 _queryParams["includeInactive"] = ["${includeInactive}"];
298 } 295 }
299 if (project != null) { 296 if (project != null) {
300 _queryParams["project"] = [project]; 297 _queryParams["project"] = [project];
301 } 298 }
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 *
435 * [waitToken] - A wait token that, if specified, blocks the call until the 431 * [waitToken] - A wait token that, if specified, blocks the call until the
436 * breakpoints 432 * breakpoints
437 * list has changed, or a server selected timeout has expired. The value 433 * list has changed, or a server selected timeout has expired. The value
438 * should be set from the last response. The error code 434 * should be set from the last response. The error code
439 * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which 435 * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
440 * should be called again with the same `wait_token`. 436 * should be called again with the same `wait_token`.
441 * 437 *
442 * [clientVersion] - The client version making the call. 438 * [clientVersion] - The client version making the call.
443 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). 439 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
444 * 440 *
445 * [action_value] - Only breakpoints with the specified action will pass the 441 * [action_value] - Only breakpoints with the specified action will pass the
446 * filter. 442 * filter.
447 * Possible string values are: 443 * Possible string values are:
448 * - "CAPTURE" : A CAPTURE. 444 * - "CAPTURE" : A CAPTURE.
449 * - "LOG" : A LOG. 445 * - "LOG" : A LOG.
450 * 446 *
447 * [includeInactive] - When set to `true`, the response includes active and
448 * inactive
449 * breakpoints. Otherwise, it includes only active breakpoints.
450 *
451 * [includeAllUsers] - When set to `true`, the response includes the list of 451 * [includeAllUsers] - When set to `true`, the response includes the list of
452 * breakpoints set by 452 * breakpoints set by
453 * any user. Otherwise, it includes only breakpoints set by the caller. 453 * any user. Otherwise, it includes only breakpoints set by the caller.
454 * 454 *
455 * [includeInactive] - When set to `true`, the response includes active and 455 * [stripResults] - This field is deprecated. The following fields are always
456 * inactive 456 * stripped out of
457 * breakpoints. Otherwise, it includes only active breakpoints. 457 * the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
458 * 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.bool stripResults, core.String waitToken, core.String clientVersion, core.String acti on_value, core.bool includeAllUsers, core.bool includeInactive}) { 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}) {
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 }
481 if (waitToken != null) { 478 if (waitToken != null) {
482 _queryParams["waitToken"] = [waitToken]; 479 _queryParams["waitToken"] = [waitToken];
483 } 480 }
484 if (clientVersion != null) { 481 if (clientVersion != null) {
485 _queryParams["clientVersion"] = [clientVersion]; 482 _queryParams["clientVersion"] = [clientVersion];
486 } 483 }
487 if (action_value != null) { 484 if (action_value != null) {
488 _queryParams["action.value"] = [action_value]; 485 _queryParams["action.value"] = [action_value];
489 } 486 }
487 if (includeInactive != null) {
488 _queryParams["includeInactive"] = ["${includeInactive}"];
489 }
490 if (includeAllUsers != null) { 490 if (includeAllUsers != null) {
491 _queryParams["includeAllUsers"] = ["${includeAllUsers}"]; 491 _queryParams["includeAllUsers"] = ["${includeAllUsers}"];
492 } 492 }
493 if (includeInactive != null) { 493 if (stripResults != null) {
494 _queryParams["includeInactive"] = ["${includeInactive}"]; 494 _queryParams["stripResults"] = ["${stripResults}"];
495 } 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,
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 return _json; 1356 return _json;
1357 } 1357 }
1358 } 1358 }
1359 1359
1360 /** Response for listing breakpoints. */ 1360 /** Response for listing breakpoints. */
1361 class ListBreakpointsResponse { 1361 class ListBreakpointsResponse {
1362 /** 1362 /**
1363 * List of breakpoints matching the request. 1363 * List of breakpoints matching the request.
1364 * The fields `id` and `location` are guaranteed to be set on each breakpoint. 1364 * The fields `id` and `location` are guaranteed to be set on each breakpoint.
1365 * The fields: `stack_frames`, `evaluated_expressions` and `variable_table` 1365 * The fields: `stack_frames`, `evaluated_expressions` and `variable_table`
1366 * are cleared on each breakpoint regardless of it's status. 1366 * are cleared on each breakpoint regardless of its status.
1367 */ 1367 */
1368 core.List<Breakpoint> breakpoints; 1368 core.List<Breakpoint> breakpoints;
1369 /** 1369 /**
1370 * A wait token that can be used in the next call to `list` (REST) or 1370 * A wait token that can be used in the next call to `list` (REST) or
1371 * `ListBreakpoints` (RPC) to block until the list of breakpoints has changes. 1371 * `ListBreakpoints` (RPC) to block until the list of breakpoints has changes.
1372 */ 1372 */
1373 core.String nextWaitToken; 1373 core.String nextWaitToken;
1374 1374
1375 ListBreakpointsResponse(); 1375 ListBreakpointsResponse();
1376 1376
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 _json["refersTo"] = refersTo; 1751 _json["refersTo"] = refersTo;
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 */ 1762 */
1763 Breakpoint breakpoint; 1763 Breakpoint breakpoint;
1764 1764
1765 UpdateActiveBreakpointRequest(); 1765 UpdateActiveBreakpointRequest();
1766 1766
1767 UpdateActiveBreakpointRequest.fromJson(core.Map _json) { 1767 UpdateActiveBreakpointRequest.fromJson(core.Map _json) {
1768 if (_json.containsKey("breakpoint")) { 1768 if (_json.containsKey("breakpoint")) {
1769 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); 1769 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]);
1770 } 1770 }
1771 } 1771 }
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/cloudbuild/v1.dart ('k') | generated/googleapis/lib/cloudfunctions/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698