| 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_beta.clouderrorreporting.v1beta1; | 3 library googleapis_beta.clouderrorreporting.v1beta1; |
| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 * | 263 * |
| 264 * [projectName] - [Required] The resource name of the Google Cloud Platform | 264 * [projectName] - [Required] The resource name of the Google Cloud Platform |
| 265 * project. Written | 265 * project. Written |
| 266 * as <code>projects/</code> plus the | 266 * as <code>projects/</code> plus the |
| 267 * <a href="https://support.google.com/cloud/answer/6158840">Google Cloud | 267 * <a href="https://support.google.com/cloud/answer/6158840">Google Cloud |
| 268 * Platform project ID</a>. | 268 * Platform project ID</a>. |
| 269 * | 269 * |
| 270 * Example: <code>projects/my-project-123</code>. | 270 * Example: <code>projects/my-project-123</code>. |
| 271 * Value must have pattern "^projects/[^/]+$". | 271 * Value must have pattern "^projects/[^/]+$". |
| 272 * | 272 * |
| 273 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned | |
| 274 * if rounded | |
| 275 * alignment is chosen. Default is 00:00 UTC. | |
| 276 * | |
| 277 * [serviceFilter_resourceType] - [Optional] The exact value to match against | |
| 278 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). | |
| 279 * | |
| 280 * [timedCountDuration] - [Optional] The preferred duration for a single | 273 * [timedCountDuration] - [Optional] The preferred duration for a single |
| 281 * returned `TimedCount`. | 274 * returned `TimedCount`. |
| 282 * If not set, no timed counts are returned. | 275 * If not set, no timed counts are returned. |
| 283 * | 276 * |
| 284 * [pageToken] - [Optional] A `next_page_token` provided by a previous | 277 * [pageToken] - [Optional] A `next_page_token` provided by a previous |
| 285 * response. To view | 278 * response. To view |
| 286 * additional results, pass this token along with the identical query | 279 * additional results, pass this token along with the identical query |
| 287 * parameters as the first request. | 280 * parameters as the first request. |
| 288 * | 281 * |
| 289 * [timeRange_period] - Restricts the query to the specified time range. | 282 * [timeRange_period] - Restricts the query to the specified time range. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 318 * Possible string values are: | 311 * Possible string values are: |
| 319 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. | 312 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. |
| 320 * - "COUNT_DESC" : A COUNT_DESC. | 313 * - "COUNT_DESC" : A COUNT_DESC. |
| 321 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. | 314 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. |
| 322 * - "CREATED_DESC" : A CREATED_DESC. | 315 * - "CREATED_DESC" : A CREATED_DESC. |
| 323 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. | 316 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. |
| 324 * | 317 * |
| 325 * [serviceFilter_version] - [Optional] The exact value to match against | 318 * [serviceFilter_version] - [Optional] The exact value to match against |
| 326 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). | 319 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). |
| 327 * | 320 * |
| 321 * [serviceFilter_resourceType] - [Optional] The exact value to match against |
| 322 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). |
| 323 * |
| 324 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned |
| 325 * if rounded |
| 326 * alignment is chosen. Default is 00:00 UTC. |
| 327 * |
| 328 * Completes with a [ListGroupStatsResponse]. | 328 * Completes with a [ListGroupStatsResponse]. |
| 329 * | 329 * |
| 330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 331 * error. | 331 * error. |
| 332 * | 332 * |
| 333 * If the used [http.Client] completes with an error when making a REST call, | 333 * If the used [http.Client] completes with an error when making a REST call, |
| 334 * this method will complete with the same error. | 334 * this method will complete with the same error. |
| 335 */ | 335 */ |
| 336 async.Future<ListGroupStatsResponse> list(core.String projectName, {core.Strin
g alignmentTime, core.String serviceFilter_resourceType, core.String timedCountD
uration, core.String pageToken, core.String timeRange_period, core.String alignm
ent, core.List<core.String> groupId, core.String serviceFilter_service, core.int
pageSize, core.String order, core.String serviceFilter_version}) { | 336 async.Future<ListGroupStatsResponse> list(core.String projectName, {core.Strin
g timedCountDuration, core.String pageToken, core.String timeRange_period, core.
String alignment, core.List<core.String> groupId, core.String serviceFilter_serv
ice, core.int pageSize, core.String order, core.String serviceFilter_version, co
re.String serviceFilter_resourceType, core.String alignmentTime}) { |
| 337 var _url = null; | 337 var _url = null; |
| 338 var _queryParams = new core.Map(); | 338 var _queryParams = new core.Map(); |
| 339 var _uploadMedia = null; | 339 var _uploadMedia = null; |
| 340 var _uploadOptions = null; | 340 var _uploadOptions = null; |
| 341 var _downloadOptions = commons.DownloadOptions.Metadata; | 341 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 342 var _body = null; | 342 var _body = null; |
| 343 | 343 |
| 344 if (projectName == null) { | 344 if (projectName == null) { |
| 345 throw new core.ArgumentError("Parameter projectName is required."); | 345 throw new core.ArgumentError("Parameter projectName is required."); |
| 346 } | 346 } |
| 347 if (alignmentTime != null) { | |
| 348 _queryParams["alignmentTime"] = [alignmentTime]; | |
| 349 } | |
| 350 if (serviceFilter_resourceType != null) { | |
| 351 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | |
| 352 } | |
| 353 if (timedCountDuration != null) { | 347 if (timedCountDuration != null) { |
| 354 _queryParams["timedCountDuration"] = [timedCountDuration]; | 348 _queryParams["timedCountDuration"] = [timedCountDuration]; |
| 355 } | 349 } |
| 356 if (pageToken != null) { | 350 if (pageToken != null) { |
| 357 _queryParams["pageToken"] = [pageToken]; | 351 _queryParams["pageToken"] = [pageToken]; |
| 358 } | 352 } |
| 359 if (timeRange_period != null) { | 353 if (timeRange_period != null) { |
| 360 _queryParams["timeRange.period"] = [timeRange_period]; | 354 _queryParams["timeRange.period"] = [timeRange_period]; |
| 361 } | 355 } |
| 362 if (alignment != null) { | 356 if (alignment != null) { |
| 363 _queryParams["alignment"] = [alignment]; | 357 _queryParams["alignment"] = [alignment]; |
| 364 } | 358 } |
| 365 if (groupId != null) { | 359 if (groupId != null) { |
| 366 _queryParams["groupId"] = groupId; | 360 _queryParams["groupId"] = groupId; |
| 367 } | 361 } |
| 368 if (serviceFilter_service != null) { | 362 if (serviceFilter_service != null) { |
| 369 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | 363 _queryParams["serviceFilter.service"] = [serviceFilter_service]; |
| 370 } | 364 } |
| 371 if (pageSize != null) { | 365 if (pageSize != null) { |
| 372 _queryParams["pageSize"] = ["${pageSize}"]; | 366 _queryParams["pageSize"] = ["${pageSize}"]; |
| 373 } | 367 } |
| 374 if (order != null) { | 368 if (order != null) { |
| 375 _queryParams["order"] = [order]; | 369 _queryParams["order"] = [order]; |
| 376 } | 370 } |
| 377 if (serviceFilter_version != null) { | 371 if (serviceFilter_version != null) { |
| 378 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | 372 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
| 379 } | 373 } |
| 374 if (serviceFilter_resourceType != null) { |
| 375 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
| 376 } |
| 377 if (alignmentTime != null) { |
| 378 _queryParams["alignmentTime"] = [alignmentTime]; |
| 379 } |
| 380 | 380 |
| 381 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/groupStats'; | 381 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/groupStats'; |
| 382 | 382 |
| 383 var _response = _requester.request(_url, | 383 var _response = _requester.request(_url, |
| 384 "GET", | 384 "GET", |
| 385 body: _body, | 385 body: _body, |
| 386 queryParams: _queryParams, | 386 queryParams: _queryParams, |
| 387 uploadOptions: _uploadOptions, | 387 uploadOptions: _uploadOptions, |
| 388 uploadMedia: _uploadMedia, | 388 uploadMedia: _uploadMedia, |
| 389 downloadOptions: _downloadOptions); | 389 downloadOptions: _downloadOptions); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 | 498 |
| 499 | 499 |
| 500 /** Response message for deleting error events. */ | 500 /** Response message for deleting error events. */ |
| 501 class DeleteEventsResponse { | 501 class DeleteEventsResponse { |
| 502 | 502 |
| 503 DeleteEventsResponse(); | 503 DeleteEventsResponse(); |
| 504 | 504 |
| 505 DeleteEventsResponse.fromJson(core.Map _json) { | 505 DeleteEventsResponse.fromJson(core.Map _json) { |
| 506 } | 506 } |
| 507 | 507 |
| 508 core.Map toJson() { | 508 core.Map<core.String, core.Object> toJson() { |
| 509 var _json = new core.Map(); | 509 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 510 return _json; | 510 return _json; |
| 511 } | 511 } |
| 512 } | 512 } |
| 513 | 513 |
| 514 /** | 514 /** |
| 515 * A description of the context in which an error occurred. | 515 * A description of the context in which an error occurred. |
| 516 * This data should be provided by the application when reporting an error, | 516 * This data should be provided by the application when reporting an error, |
| 517 * unless the | 517 * unless the |
| 518 * error report has been generated automatically from Google App Engine logs. | 518 * error report has been generated automatically from Google App Engine logs. |
| 519 */ | 519 */ |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 reportLocation = new SourceLocation.fromJson(_json["reportLocation"]); | 559 reportLocation = new SourceLocation.fromJson(_json["reportLocation"]); |
| 560 } | 560 } |
| 561 if (_json.containsKey("sourceReferences")) { | 561 if (_json.containsKey("sourceReferences")) { |
| 562 sourceReferences = _json["sourceReferences"].map((value) => new SourceRefe
rence.fromJson(value)).toList(); | 562 sourceReferences = _json["sourceReferences"].map((value) => new SourceRefe
rence.fromJson(value)).toList(); |
| 563 } | 563 } |
| 564 if (_json.containsKey("user")) { | 564 if (_json.containsKey("user")) { |
| 565 user = _json["user"]; | 565 user = _json["user"]; |
| 566 } | 566 } |
| 567 } | 567 } |
| 568 | 568 |
| 569 core.Map toJson() { | 569 core.Map<core.String, core.Object> toJson() { |
| 570 var _json = new core.Map(); | 570 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 571 if (httpRequest != null) { | 571 if (httpRequest != null) { |
| 572 _json["httpRequest"] = (httpRequest).toJson(); | 572 _json["httpRequest"] = (httpRequest).toJson(); |
| 573 } | 573 } |
| 574 if (reportLocation != null) { | 574 if (reportLocation != null) { |
| 575 _json["reportLocation"] = (reportLocation).toJson(); | 575 _json["reportLocation"] = (reportLocation).toJson(); |
| 576 } | 576 } |
| 577 if (sourceReferences != null) { | 577 if (sourceReferences != null) { |
| 578 _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson
()).toList(); | 578 _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson
()).toList(); |
| 579 } | 579 } |
| 580 if (user != null) { | 580 if (user != null) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 609 eventTime = _json["eventTime"]; | 609 eventTime = _json["eventTime"]; |
| 610 } | 610 } |
| 611 if (_json.containsKey("message")) { | 611 if (_json.containsKey("message")) { |
| 612 message = _json["message"]; | 612 message = _json["message"]; |
| 613 } | 613 } |
| 614 if (_json.containsKey("serviceContext")) { | 614 if (_json.containsKey("serviceContext")) { |
| 615 serviceContext = new ServiceContext.fromJson(_json["serviceContext"]); | 615 serviceContext = new ServiceContext.fromJson(_json["serviceContext"]); |
| 616 } | 616 } |
| 617 } | 617 } |
| 618 | 618 |
| 619 core.Map toJson() { | 619 core.Map<core.String, core.Object> toJson() { |
| 620 var _json = new core.Map(); | 620 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 621 if (context != null) { | 621 if (context != null) { |
| 622 _json["context"] = (context).toJson(); | 622 _json["context"] = (context).toJson(); |
| 623 } | 623 } |
| 624 if (eventTime != null) { | 624 if (eventTime != null) { |
| 625 _json["eventTime"] = eventTime; | 625 _json["eventTime"] = eventTime; |
| 626 } | 626 } |
| 627 if (message != null) { | 627 if (message != null) { |
| 628 _json["message"] = message; | 628 _json["message"] = message; |
| 629 } | 629 } |
| 630 if (serviceContext != null) { | 630 if (serviceContext != null) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 656 groupId = _json["groupId"]; | 656 groupId = _json["groupId"]; |
| 657 } | 657 } |
| 658 if (_json.containsKey("name")) { | 658 if (_json.containsKey("name")) { |
| 659 name = _json["name"]; | 659 name = _json["name"]; |
| 660 } | 660 } |
| 661 if (_json.containsKey("trackingIssues")) { | 661 if (_json.containsKey("trackingIssues")) { |
| 662 trackingIssues = _json["trackingIssues"].map((value) => new TrackingIssue.
fromJson(value)).toList(); | 662 trackingIssues = _json["trackingIssues"].map((value) => new TrackingIssue.
fromJson(value)).toList(); |
| 663 } | 663 } |
| 664 } | 664 } |
| 665 | 665 |
| 666 core.Map toJson() { | 666 core.Map<core.String, core.Object> toJson() { |
| 667 var _json = new core.Map(); | 667 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 668 if (groupId != null) { | 668 if (groupId != null) { |
| 669 _json["groupId"] = groupId; | 669 _json["groupId"] = groupId; |
| 670 } | 670 } |
| 671 if (name != null) { | 671 if (name != null) { |
| 672 _json["name"] = name; | 672 _json["name"] = name; |
| 673 } | 673 } |
| 674 if (trackingIssues != null) { | 674 if (trackingIssues != null) { |
| 675 _json["trackingIssues"] = trackingIssues.map((value) => (value).toJson()).
toList(); | 675 _json["trackingIssues"] = trackingIssues.map((value) => (value).toJson()).
toList(); |
| 676 } | 676 } |
| 677 return _json; | 677 return _json; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 numAffectedServices = _json["numAffectedServices"]; | 771 numAffectedServices = _json["numAffectedServices"]; |
| 772 } | 772 } |
| 773 if (_json.containsKey("representative")) { | 773 if (_json.containsKey("representative")) { |
| 774 representative = new ErrorEvent.fromJson(_json["representative"]); | 774 representative = new ErrorEvent.fromJson(_json["representative"]); |
| 775 } | 775 } |
| 776 if (_json.containsKey("timedCounts")) { | 776 if (_json.containsKey("timedCounts")) { |
| 777 timedCounts = _json["timedCounts"].map((value) => new TimedCount.fromJson(
value)).toList(); | 777 timedCounts = _json["timedCounts"].map((value) => new TimedCount.fromJson(
value)).toList(); |
| 778 } | 778 } |
| 779 } | 779 } |
| 780 | 780 |
| 781 core.Map toJson() { | 781 core.Map<core.String, core.Object> toJson() { |
| 782 var _json = new core.Map(); | 782 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 783 if (affectedServices != null) { | 783 if (affectedServices != null) { |
| 784 _json["affectedServices"] = affectedServices.map((value) => (value).toJson
()).toList(); | 784 _json["affectedServices"] = affectedServices.map((value) => (value).toJson
()).toList(); |
| 785 } | 785 } |
| 786 if (affectedUsersCount != null) { | 786 if (affectedUsersCount != null) { |
| 787 _json["affectedUsersCount"] = affectedUsersCount; | 787 _json["affectedUsersCount"] = affectedUsersCount; |
| 788 } | 788 } |
| 789 if (count != null) { | 789 if (count != null) { |
| 790 _json["count"] = count; | 790 _json["count"] = count; |
| 791 } | 791 } |
| 792 if (firstSeenTime != null) { | 792 if (firstSeenTime != null) { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 responseStatusCode = _json["responseStatusCode"]; | 852 responseStatusCode = _json["responseStatusCode"]; |
| 853 } | 853 } |
| 854 if (_json.containsKey("url")) { | 854 if (_json.containsKey("url")) { |
| 855 url = _json["url"]; | 855 url = _json["url"]; |
| 856 } | 856 } |
| 857 if (_json.containsKey("userAgent")) { | 857 if (_json.containsKey("userAgent")) { |
| 858 userAgent = _json["userAgent"]; | 858 userAgent = _json["userAgent"]; |
| 859 } | 859 } |
| 860 } | 860 } |
| 861 | 861 |
| 862 core.Map toJson() { | 862 core.Map<core.String, core.Object> toJson() { |
| 863 var _json = new core.Map(); | 863 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 864 if (method != null) { | 864 if (method != null) { |
| 865 _json["method"] = method; | 865 _json["method"] = method; |
| 866 } | 866 } |
| 867 if (referrer != null) { | 867 if (referrer != null) { |
| 868 _json["referrer"] = referrer; | 868 _json["referrer"] = referrer; |
| 869 } | 869 } |
| 870 if (remoteIp != null) { | 870 if (remoteIp != null) { |
| 871 _json["remoteIp"] = remoteIp; | 871 _json["remoteIp"] = remoteIp; |
| 872 } | 872 } |
| 873 if (responseStatusCode != null) { | 873 if (responseStatusCode != null) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 errorEvents = _json["errorEvents"].map((value) => new ErrorEvent.fromJson(
value)).toList(); | 905 errorEvents = _json["errorEvents"].map((value) => new ErrorEvent.fromJson(
value)).toList(); |
| 906 } | 906 } |
| 907 if (_json.containsKey("nextPageToken")) { | 907 if (_json.containsKey("nextPageToken")) { |
| 908 nextPageToken = _json["nextPageToken"]; | 908 nextPageToken = _json["nextPageToken"]; |
| 909 } | 909 } |
| 910 if (_json.containsKey("timeRangeBegin")) { | 910 if (_json.containsKey("timeRangeBegin")) { |
| 911 timeRangeBegin = _json["timeRangeBegin"]; | 911 timeRangeBegin = _json["timeRangeBegin"]; |
| 912 } | 912 } |
| 913 } | 913 } |
| 914 | 914 |
| 915 core.Map toJson() { | 915 core.Map<core.String, core.Object> toJson() { |
| 916 var _json = new core.Map(); | 916 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 917 if (errorEvents != null) { | 917 if (errorEvents != null) { |
| 918 _json["errorEvents"] = errorEvents.map((value) => (value).toJson()).toList
(); | 918 _json["errorEvents"] = errorEvents.map((value) => (value).toJson()).toList
(); |
| 919 } | 919 } |
| 920 if (nextPageToken != null) { | 920 if (nextPageToken != null) { |
| 921 _json["nextPageToken"] = nextPageToken; | 921 _json["nextPageToken"] = nextPageToken; |
| 922 } | 922 } |
| 923 if (timeRangeBegin != null) { | 923 if (timeRangeBegin != null) { |
| 924 _json["timeRangeBegin"] = timeRangeBegin; | 924 _json["timeRangeBegin"] = timeRangeBegin; |
| 925 } | 925 } |
| 926 return _json; | 926 return _json; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 952 errorGroupStats = _json["errorGroupStats"].map((value) => new ErrorGroupSt
ats.fromJson(value)).toList(); | 952 errorGroupStats = _json["errorGroupStats"].map((value) => new ErrorGroupSt
ats.fromJson(value)).toList(); |
| 953 } | 953 } |
| 954 if (_json.containsKey("nextPageToken")) { | 954 if (_json.containsKey("nextPageToken")) { |
| 955 nextPageToken = _json["nextPageToken"]; | 955 nextPageToken = _json["nextPageToken"]; |
| 956 } | 956 } |
| 957 if (_json.containsKey("timeRangeBegin")) { | 957 if (_json.containsKey("timeRangeBegin")) { |
| 958 timeRangeBegin = _json["timeRangeBegin"]; | 958 timeRangeBegin = _json["timeRangeBegin"]; |
| 959 } | 959 } |
| 960 } | 960 } |
| 961 | 961 |
| 962 core.Map toJson() { | 962 core.Map<core.String, core.Object> toJson() { |
| 963 var _json = new core.Map(); | 963 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 964 if (errorGroupStats != null) { | 964 if (errorGroupStats != null) { |
| 965 _json["errorGroupStats"] = errorGroupStats.map((value) => (value).toJson()
).toList(); | 965 _json["errorGroupStats"] = errorGroupStats.map((value) => (value).toJson()
).toList(); |
| 966 } | 966 } |
| 967 if (nextPageToken != null) { | 967 if (nextPageToken != null) { |
| 968 _json["nextPageToken"] = nextPageToken; | 968 _json["nextPageToken"] = nextPageToken; |
| 969 } | 969 } |
| 970 if (timeRangeBegin != null) { | 970 if (timeRangeBegin != null) { |
| 971 _json["timeRangeBegin"] = timeRangeBegin; | 971 _json["timeRangeBegin"] = timeRangeBegin; |
| 972 } | 972 } |
| 973 return _json; | 973 return _json; |
| 974 } | 974 } |
| 975 } | 975 } |
| 976 | 976 |
| 977 /** | 977 /** |
| 978 * Response for reporting an individual error event. | 978 * Response for reporting an individual error event. |
| 979 * Data may be added to this message in the future. | 979 * Data may be added to this message in the future. |
| 980 */ | 980 */ |
| 981 class ReportErrorEventResponse { | 981 class ReportErrorEventResponse { |
| 982 | 982 |
| 983 ReportErrorEventResponse(); | 983 ReportErrorEventResponse(); |
| 984 | 984 |
| 985 ReportErrorEventResponse.fromJson(core.Map _json) { | 985 ReportErrorEventResponse.fromJson(core.Map _json) { |
| 986 } | 986 } |
| 987 | 987 |
| 988 core.Map toJson() { | 988 core.Map<core.String, core.Object> toJson() { |
| 989 var _json = new core.Map(); | 989 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 990 return _json; | 990 return _json; |
| 991 } | 991 } |
| 992 } | 992 } |
| 993 | 993 |
| 994 /** An error event which is reported to the Error Reporting system. */ | 994 /** An error event which is reported to the Error Reporting system. */ |
| 995 class ReportedErrorEvent { | 995 class ReportedErrorEvent { |
| 996 /** [Optional] A description of the context in which the error occurred. */ | 996 /** [Optional] A description of the context in which the error occurred. */ |
| 997 ErrorContext context; | 997 ErrorContext context; |
| 998 /** | 998 /** |
| 999 * [Optional] Time when the event occurred. | 999 * [Optional] Time when the event occurred. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 eventTime = _json["eventTime"]; | 1041 eventTime = _json["eventTime"]; |
| 1042 } | 1042 } |
| 1043 if (_json.containsKey("message")) { | 1043 if (_json.containsKey("message")) { |
| 1044 message = _json["message"]; | 1044 message = _json["message"]; |
| 1045 } | 1045 } |
| 1046 if (_json.containsKey("serviceContext")) { | 1046 if (_json.containsKey("serviceContext")) { |
| 1047 serviceContext = new ServiceContext.fromJson(_json["serviceContext"]); | 1047 serviceContext = new ServiceContext.fromJson(_json["serviceContext"]); |
| 1048 } | 1048 } |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 core.Map toJson() { | 1051 core.Map<core.String, core.Object> toJson() { |
| 1052 var _json = new core.Map(); | 1052 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1053 if (context != null) { | 1053 if (context != null) { |
| 1054 _json["context"] = (context).toJson(); | 1054 _json["context"] = (context).toJson(); |
| 1055 } | 1055 } |
| 1056 if (eventTime != null) { | 1056 if (eventTime != null) { |
| 1057 _json["eventTime"] = eventTime; | 1057 _json["eventTime"] = eventTime; |
| 1058 } | 1058 } |
| 1059 if (message != null) { | 1059 if (message != null) { |
| 1060 _json["message"] = message; | 1060 _json["message"] = message; |
| 1061 } | 1061 } |
| 1062 if (serviceContext != null) { | 1062 if (serviceContext != null) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1104 resourceType = _json["resourceType"]; | 1104 resourceType = _json["resourceType"]; |
| 1105 } | 1105 } |
| 1106 if (_json.containsKey("service")) { | 1106 if (_json.containsKey("service")) { |
| 1107 service = _json["service"]; | 1107 service = _json["service"]; |
| 1108 } | 1108 } |
| 1109 if (_json.containsKey("version")) { | 1109 if (_json.containsKey("version")) { |
| 1110 version = _json["version"]; | 1110 version = _json["version"]; |
| 1111 } | 1111 } |
| 1112 } | 1112 } |
| 1113 | 1113 |
| 1114 core.Map toJson() { | 1114 core.Map<core.String, core.Object> toJson() { |
| 1115 var _json = new core.Map(); | 1115 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1116 if (resourceType != null) { | 1116 if (resourceType != null) { |
| 1117 _json["resourceType"] = resourceType; | 1117 _json["resourceType"] = resourceType; |
| 1118 } | 1118 } |
| 1119 if (service != null) { | 1119 if (service != null) { |
| 1120 _json["service"] = service; | 1120 _json["service"] = service; |
| 1121 } | 1121 } |
| 1122 if (version != null) { | 1122 if (version != null) { |
| 1123 _json["version"] = version; | 1123 _json["version"] = version; |
| 1124 } | 1124 } |
| 1125 return _json; | 1125 return _json; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1154 filePath = _json["filePath"]; | 1154 filePath = _json["filePath"]; |
| 1155 } | 1155 } |
| 1156 if (_json.containsKey("functionName")) { | 1156 if (_json.containsKey("functionName")) { |
| 1157 functionName = _json["functionName"]; | 1157 functionName = _json["functionName"]; |
| 1158 } | 1158 } |
| 1159 if (_json.containsKey("lineNumber")) { | 1159 if (_json.containsKey("lineNumber")) { |
| 1160 lineNumber = _json["lineNumber"]; | 1160 lineNumber = _json["lineNumber"]; |
| 1161 } | 1161 } |
| 1162 } | 1162 } |
| 1163 | 1163 |
| 1164 core.Map toJson() { | 1164 core.Map<core.String, core.Object> toJson() { |
| 1165 var _json = new core.Map(); | 1165 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1166 if (filePath != null) { | 1166 if (filePath != null) { |
| 1167 _json["filePath"] = filePath; | 1167 _json["filePath"] = filePath; |
| 1168 } | 1168 } |
| 1169 if (functionName != null) { | 1169 if (functionName != null) { |
| 1170 _json["functionName"] = functionName; | 1170 _json["functionName"] = functionName; |
| 1171 } | 1171 } |
| 1172 if (lineNumber != null) { | 1172 if (lineNumber != null) { |
| 1173 _json["lineNumber"] = lineNumber; | 1173 _json["lineNumber"] = lineNumber; |
| 1174 } | 1174 } |
| 1175 return _json; | 1175 return _json; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1196 | 1196 |
| 1197 SourceReference.fromJson(core.Map _json) { | 1197 SourceReference.fromJson(core.Map _json) { |
| 1198 if (_json.containsKey("repository")) { | 1198 if (_json.containsKey("repository")) { |
| 1199 repository = _json["repository"]; | 1199 repository = _json["repository"]; |
| 1200 } | 1200 } |
| 1201 if (_json.containsKey("revisionId")) { | 1201 if (_json.containsKey("revisionId")) { |
| 1202 revisionId = _json["revisionId"]; | 1202 revisionId = _json["revisionId"]; |
| 1203 } | 1203 } |
| 1204 } | 1204 } |
| 1205 | 1205 |
| 1206 core.Map toJson() { | 1206 core.Map<core.String, core.Object> toJson() { |
| 1207 var _json = new core.Map(); | 1207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1208 if (repository != null) { | 1208 if (repository != null) { |
| 1209 _json["repository"] = repository; | 1209 _json["repository"] = repository; |
| 1210 } | 1210 } |
| 1211 if (revisionId != null) { | 1211 if (revisionId != null) { |
| 1212 _json["revisionId"] = revisionId; | 1212 _json["revisionId"] = revisionId; |
| 1213 } | 1213 } |
| 1214 return _json; | 1214 return _json; |
| 1215 } | 1215 } |
| 1216 } | 1216 } |
| 1217 | 1217 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1235 count = _json["count"]; | 1235 count = _json["count"]; |
| 1236 } | 1236 } |
| 1237 if (_json.containsKey("endTime")) { | 1237 if (_json.containsKey("endTime")) { |
| 1238 endTime = _json["endTime"]; | 1238 endTime = _json["endTime"]; |
| 1239 } | 1239 } |
| 1240 if (_json.containsKey("startTime")) { | 1240 if (_json.containsKey("startTime")) { |
| 1241 startTime = _json["startTime"]; | 1241 startTime = _json["startTime"]; |
| 1242 } | 1242 } |
| 1243 } | 1243 } |
| 1244 | 1244 |
| 1245 core.Map toJson() { | 1245 core.Map<core.String, core.Object> toJson() { |
| 1246 var _json = new core.Map(); | 1246 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1247 if (count != null) { | 1247 if (count != null) { |
| 1248 _json["count"] = count; | 1248 _json["count"] = count; |
| 1249 } | 1249 } |
| 1250 if (endTime != null) { | 1250 if (endTime != null) { |
| 1251 _json["endTime"] = endTime; | 1251 _json["endTime"] = endTime; |
| 1252 } | 1252 } |
| 1253 if (startTime != null) { | 1253 if (startTime != null) { |
| 1254 _json["startTime"] = startTime; | 1254 _json["startTime"] = startTime; |
| 1255 } | 1255 } |
| 1256 return _json; | 1256 return _json; |
| 1257 } | 1257 } |
| 1258 } | 1258 } |
| 1259 | 1259 |
| 1260 /** Information related to tracking the progress on resolving the error. */ | 1260 /** Information related to tracking the progress on resolving the error. */ |
| 1261 class TrackingIssue { | 1261 class TrackingIssue { |
| 1262 /** | 1262 /** |
| 1263 * A URL pointing to a related entry in an issue tracking system. | 1263 * A URL pointing to a related entry in an issue tracking system. |
| 1264 * Example: https://github.com/user/project/issues/4 | 1264 * Example: https://github.com/user/project/issues/4 |
| 1265 */ | 1265 */ |
| 1266 core.String url; | 1266 core.String url; |
| 1267 | 1267 |
| 1268 TrackingIssue(); | 1268 TrackingIssue(); |
| 1269 | 1269 |
| 1270 TrackingIssue.fromJson(core.Map _json) { | 1270 TrackingIssue.fromJson(core.Map _json) { |
| 1271 if (_json.containsKey("url")) { | 1271 if (_json.containsKey("url")) { |
| 1272 url = _json["url"]; | 1272 url = _json["url"]; |
| 1273 } | 1273 } |
| 1274 } | 1274 } |
| 1275 | 1275 |
| 1276 core.Map toJson() { | 1276 core.Map<core.String, core.Object> toJson() { |
| 1277 var _json = new core.Map(); | 1277 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1278 if (url != null) { | 1278 if (url != null) { |
| 1279 _json["url"] = url; | 1279 _json["url"] = url; |
| 1280 } | 1280 } |
| 1281 return _json; | 1281 return _json; |
| 1282 } | 1282 } |
| 1283 } | 1283 } |
| OLD | NEW |