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; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client clouddebugger/v2'; | 15 const core.String USER_AGENT = 'dart-api-client clouddebugger/v2'; |
16 | 16 |
| 17 /** |
| 18 * Lets you examine the stack and variables of your running application without |
| 19 * stopping or slowing it down. |
| 20 */ |
17 class ClouddebuggerApi { | 21 class ClouddebuggerApi { |
18 /** View and manage your data across Google Cloud Platform services */ | 22 /** View and manage your data across Google Cloud Platform services */ |
19 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
20 | 24 |
21 /** Manage cloud debugger */ | 25 /** Manage cloud debugger */ |
22 static const CloudDebuggerScope = "https://www.googleapis.com/auth/cloud_debug
ger"; | 26 static const CloudDebuggerScope = "https://www.googleapis.com/auth/cloud_debug
ger"; |
23 | 27 |
24 /** Manage active breakpoints in cloud debugger */ | 28 /** Manage active breakpoints in cloud debugger */ |
25 static const CloudDebugletcontrollerScope = "https://www.googleapis.com/auth/c
loud_debugletcontroller"; | 29 static const CloudDebugletcontrollerScope = "https://www.googleapis.com/auth/c
loud_debugletcontroller"; |
26 | 30 |
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 | 1069 |
1066 core.Map toJson() { | 1070 core.Map toJson() { |
1067 var _json = new core.Map(); | 1071 var _json = new core.Map(); |
1068 if (breakpoint != null) { | 1072 if (breakpoint != null) { |
1069 _json["breakpoint"] = (breakpoint).toJson(); | 1073 _json["breakpoint"] = (breakpoint).toJson(); |
1070 } | 1074 } |
1071 return _json; | 1075 return _json; |
1072 } | 1076 } |
1073 } | 1077 } |
1074 | 1078 |
| 1079 /** |
| 1080 * A GitSourceContext denotes a particular revision in a third party Git |
| 1081 * repository (e.g. GitHub). |
| 1082 */ |
| 1083 class GitSourceContext { |
| 1084 /** Git commit hash. required. */ |
| 1085 core.String revisionId; |
| 1086 /** Git repository URL. */ |
| 1087 core.String url; |
| 1088 |
| 1089 GitSourceContext(); |
| 1090 |
| 1091 GitSourceContext.fromJson(core.Map _json) { |
| 1092 if (_json.containsKey("revisionId")) { |
| 1093 revisionId = _json["revisionId"]; |
| 1094 } |
| 1095 if (_json.containsKey("url")) { |
| 1096 url = _json["url"]; |
| 1097 } |
| 1098 } |
| 1099 |
| 1100 core.Map toJson() { |
| 1101 var _json = new core.Map(); |
| 1102 if (revisionId != null) { |
| 1103 _json["revisionId"] = revisionId; |
| 1104 } |
| 1105 if (url != null) { |
| 1106 _json["url"] = url; |
| 1107 } |
| 1108 return _json; |
| 1109 } |
| 1110 } |
| 1111 |
1075 /** The response of listing active breakpoints. */ | 1112 /** The response of listing active breakpoints. */ |
1076 class ListActiveBreakpointsResponse { | 1113 class ListActiveBreakpointsResponse { |
1077 /** | 1114 /** |
1078 * List of all active breakpoints. The fields 'id' and 'location' are | 1115 * List of all active breakpoints. The fields 'id' and 'location' are |
1079 * guranteed to be set on each breakpoint. | 1116 * guranteed to be set on each breakpoint. |
1080 */ | 1117 */ |
1081 core.List<Breakpoint> breakpoints; | 1118 core.List<Breakpoint> breakpoints; |
1082 /** | 1119 /** |
1083 * A wait token that can be used in the next method call to block until the | 1120 * A wait token that can be used in the next method call to block until the |
1084 * list of breakpoints changes. | 1121 * list of breakpoints changes. |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 * A SourceContext is a reference to a tree of files. A SourceContext together | 1350 * A SourceContext is a reference to a tree of files. A SourceContext together |
1314 * with a path point to a unique revision of a single file or directory. | 1351 * with a path point to a unique revision of a single file or directory. |
1315 */ | 1352 */ |
1316 class SourceContext { | 1353 class SourceContext { |
1317 /** A SourceContext referring to a revision in a cloud repo. */ | 1354 /** A SourceContext referring to a revision in a cloud repo. */ |
1318 CloudRepoSourceContext cloudRepo; | 1355 CloudRepoSourceContext cloudRepo; |
1319 /** A SourceContext referring to a snapshot in a cloud workspace. */ | 1356 /** A SourceContext referring to a snapshot in a cloud workspace. */ |
1320 CloudWorkspaceSourceContext cloudWorkspace; | 1357 CloudWorkspaceSourceContext cloudWorkspace; |
1321 /** A SourceContext referring to a Gerrit project. */ | 1358 /** A SourceContext referring to a Gerrit project. */ |
1322 GerritSourceContext gerrit; | 1359 GerritSourceContext gerrit; |
| 1360 /** A SourceContext referring to any third party Git repo (e.g. GitHub). */ |
| 1361 GitSourceContext git; |
1323 | 1362 |
1324 SourceContext(); | 1363 SourceContext(); |
1325 | 1364 |
1326 SourceContext.fromJson(core.Map _json) { | 1365 SourceContext.fromJson(core.Map _json) { |
1327 if (_json.containsKey("cloudRepo")) { | 1366 if (_json.containsKey("cloudRepo")) { |
1328 cloudRepo = new CloudRepoSourceContext.fromJson(_json["cloudRepo"]); | 1367 cloudRepo = new CloudRepoSourceContext.fromJson(_json["cloudRepo"]); |
1329 } | 1368 } |
1330 if (_json.containsKey("cloudWorkspace")) { | 1369 if (_json.containsKey("cloudWorkspace")) { |
1331 cloudWorkspace = new CloudWorkspaceSourceContext.fromJson(_json["cloudWork
space"]); | 1370 cloudWorkspace = new CloudWorkspaceSourceContext.fromJson(_json["cloudWork
space"]); |
1332 } | 1371 } |
1333 if (_json.containsKey("gerrit")) { | 1372 if (_json.containsKey("gerrit")) { |
1334 gerrit = new GerritSourceContext.fromJson(_json["gerrit"]); | 1373 gerrit = new GerritSourceContext.fromJson(_json["gerrit"]); |
1335 } | 1374 } |
| 1375 if (_json.containsKey("git")) { |
| 1376 git = new GitSourceContext.fromJson(_json["git"]); |
| 1377 } |
1336 } | 1378 } |
1337 | 1379 |
1338 core.Map toJson() { | 1380 core.Map toJson() { |
1339 var _json = new core.Map(); | 1381 var _json = new core.Map(); |
1340 if (cloudRepo != null) { | 1382 if (cloudRepo != null) { |
1341 _json["cloudRepo"] = (cloudRepo).toJson(); | 1383 _json["cloudRepo"] = (cloudRepo).toJson(); |
1342 } | 1384 } |
1343 if (cloudWorkspace != null) { | 1385 if (cloudWorkspace != null) { |
1344 _json["cloudWorkspace"] = (cloudWorkspace).toJson(); | 1386 _json["cloudWorkspace"] = (cloudWorkspace).toJson(); |
1345 } | 1387 } |
1346 if (gerrit != null) { | 1388 if (gerrit != null) { |
1347 _json["gerrit"] = (gerrit).toJson(); | 1389 _json["gerrit"] = (gerrit).toJson(); |
1348 } | 1390 } |
| 1391 if (git != null) { |
| 1392 _json["git"] = (git).toJson(); |
| 1393 } |
1349 return _json; | 1394 return _json; |
1350 } | 1395 } |
1351 } | 1396 } |
1352 | 1397 |
1353 /** Represents a location in the source code. */ | 1398 /** Represents a location in the source code. */ |
1354 class SourceLocation { | 1399 class SourceLocation { |
1355 /** The line inside the file (first line value is '1'). */ | 1400 /** The line inside the file (first line value is '1'). */ |
1356 core.int line; | 1401 core.int line; |
1357 /** | 1402 /** |
1358 * A path to the source file within the source context of the target binary. | 1403 * A path to the source file within the source context of the target binary. |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1617 } | 1662 } |
1618 if (value != null) { | 1663 if (value != null) { |
1619 _json["value"] = value; | 1664 _json["value"] = value; |
1620 } | 1665 } |
1621 if (varTableIndex != null) { | 1666 if (varTableIndex != null) { |
1622 _json["varTableIndex"] = varTableIndex; | 1667 _json["varTableIndex"] = varTableIndex; |
1623 } | 1668 } |
1624 return _json; | 1669 return _json; |
1625 } | 1670 } |
1626 } | 1671 } |
OLD | NEW |